summaryrefslogtreecommitdiff
path: root/recordmydesktop
diff options
context:
space:
mode:
Diffstat (limited to 'recordmydesktop')
-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