patch-1.3.31 linux/drivers/sound/sound_switch.c
Next file: linux/fs/binfmt_elf.c
Previous file: linux/drivers/scsi/st.c
Back to the patch index
Back to the overall index
-  Lines: 11
 -  Date:
Sun Oct  1 10:00:52 1995
 -  Orig file: 
v1.3.30/linux/drivers/sound/sound_switch.c
 -  Orig date: 
Mon Aug 28 14:52:21 1995
 
diff -u --recursive --new-file v1.3.30/linux/drivers/sound/sound_switch.c linux/drivers/sound/sound_switch.c
@@ -58,9 +58,7 @@
 {
   int             l;
 
-  for (l = 0; l < 256, s[l]; l++);	/*
-					 * l=strlen(s);
-					 */
+  l = strnlen(s, 256);
 
   if (status_len + l >= 4000)
     return 0;
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