From de076487197495a590080cbe8367295dffd1324d Mon Sep 17 00:00:00 2001 From: iovar Date: Tue, 17 Jul 2007 10:23:37 +0000 Subject: 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 --- recordmydesktop/src/capture_sound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3