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

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