Update of /cvsroot/alsa/alsa-lib/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27606/src
Modified Files:
conf.c
Log Message:
- check the return value of malloc & co.
Index: conf.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/conf.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- conf.c 3 Sep 2003 19:25:08 -0000 1.68
+++ conf.c 25 Feb 2004 11:24:29 -0000 1.69
@@ -2642,6 +2642,10 @@
if (!func_name) {
int len = 16 + strlen(str) + 1;
buf = malloc(len);
+ if (! buf) {
+ err = -ENOMEM;
+ goto _err;
+ }
snprintf(buf, len, "snd_config_hook_%s", str);
buf[len-1] = '\0';
func_name = buf;
@@ -3423,6 +3427,10 @@
if (!func_name) {
int len = 9 + strlen(str) + 1;
buf = malloc(len);
+ if (! buf) {
+ err = -ENOMEM;
+ goto _err;
+ }
snprintf(buf, len, "snd_func_%s", str);
buf[len-1] = '\0';
func_name = buf;
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog