PATCH: use the right function in reiserfs (resend #3)

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 14 Jul 2003 13:30:57 +0100


#ra1
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.22-pre5/fs/reiserfs/prints.c linux.22-pre5-ac1/fs/reiserfs/prints.c
--- linux.22-pre5/fs/reiserfs/prints.c 2003-07-14 12:27:42.000000000 +0100
+++ linux.22-pre5-ac1/fs/reiserfs/prints.c 2003-07-06 14:06:59.000000000 +0100
@@ -159,7 +159,7 @@

*skip = 0;

- while ((k = strstr (k, "%")) != NULL)
+ while ((k = strchr (k, '%')) != NULL)
{
if (k[1] == 'k' || k[1] == 'K' || k[1] == 'h' || k[1] == 't' ||
k[1] == 'z' || k[1] == 'b' || k[1] == 'y' || k[1] == 'a' ) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/