diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-07-17 10:23:37 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-07-17 10:23:37 +0000 |
commit | de076487197495a590080cbe8367295dffd1324d (patch) | |
tree | d8a03d4d53c617b3b30c7dcc9267cab4f619b291 | |
parent | f5b374803788d011854226ee0cab62f070767a75 (diff) |
capture_sound.c: fix incorrect allocation of newbuff
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@390 f606c939-3180-4ac9-a4b8-4b8779d57d0a
-rw-r--r-- | recordmydesktop/src/capture_sound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recordmydesktop/src/capture_sound.c b/recordmydesktop/src/capture_sound.c index 3b69764..fe85a88 100644 --- a/recordmydesktop/src/capture_sound.c +++ b/recordmydesktop/src/capture_sound.c @@ -90,7 +90,7 @@ void *CaptureSound(ProgData *pdata){ } //create new buffer - newbuf=(SndBuffer *)malloc(sizeof(SndBuffer *)); + newbuf=(SndBuffer *)malloc(sizeof(SndBuffer)); #ifdef HAVE_LIBASOUND newbuf->data=(signed char *)malloc(frames*framesize); #else |