summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-07-17 10:23:37 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-07-17 10:23:37 +0000
commitde076487197495a590080cbe8367295dffd1324d (patch)
treed8a03d4d53c617b3b30c7dcc9267cab4f619b291
parentf5b374803788d011854226ee0cab62f070767a75 (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.c2
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
© All Rights Reserved