summaryrefslogtreecommitdiff
path: root/source/ap/madplay/madplay-0.15.2b-fix-segfault.patch
blob: cb9f31363c5f884781958123b07606d3500105bb (plain)
1
2
3
4
5
6
7
8
9
10
11
--- madplay-0.15.2b/audio_alsa.c.orig	2004-02-23 21:35:23.000000000 +0000
+++ madplay-0.15.2b/audio_alsa.c	2010-04-21 14:26:52.000000000 +0100
@@ -241,7 +241,7 @@ int config(struct audio_config *config)
 		return -1;
 	}
 
-	buf = malloc(buffer_size);
+	buf = malloc(buffer_size*sample_size);
 	if (buf == NULL) {
 		audio_error="unable to allocate output buffer table";
 		return -1;