patch-1.3.14 linux/drivers/sound/sound_switch.c
Next file: linux/drivers/sound/soundvers.h
Previous file: linux/drivers/sound/sequencer.c
Back to the patch index
Back to the overall index
-  Lines: 11
 -  Date:
Mon Jul 31 09:50:22 1995
 -  Orig file: 
v1.3.13/linux/drivers/sound/sound_switch.c
 -  Orig date: 
Tue Jul 11 10:02:54 1995
 
diff -u --recursive --new-file v1.3.13/linux/drivers/sound/sound_switch.c linux/drivers/sound/sound_switch.c
@@ -58,8 +58,8 @@
 {
   int             l;
 
-  for (l = 0; l < 256, s[l]; l++);	/*
-					 * l=strlen(s);
+  for (l = 0; l < 256 && s[l]; l++);	/*
+					 * l=strnlen(s,256);
 					 */
 
   if (status_len + l >= 4000)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this