patch-2.3.39 linux/lib/string.c
Next file: linux/mm/memory.c
Previous file: linux/kernel/uid16.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Sat Jan  8 12:54:54 2000
-  Orig file: 
v2.3.38/linux/lib/string.c
-  Orig date: 
Fri Jan  7 19:13:23 2000
diff -u --recursive --new-file v2.3.38/linux/lib/string.c linux/lib/string.c
@@ -369,7 +369,7 @@
 	const unsigned char *p = s;
 	while (n-- != 0) {
         	if ((unsigned char)c == *p++) {
-			return (void *)p-1;
+			return (void *)(p-1);
 		}
 	}
 	return NULL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)