Patch for strncmp use in s390 (sclp)

From: Pete Zaitcev (zaitcev@redhat.com)
Date: Wed May 28 2003 - 15:56:18 EST


This one is different from the one in setup.c, being an actual bug.

-- Pete

--- linux-2.4.20-1.1931.2.199.z0/drivers/s390/char/sclp_tty.c 2003-05-19 17:16:59.000000000 -0400
+++ linux-2.4.20-1.1931.2.199.z1/drivers/s390/char/sclp_tty.c 2003-05-28 12:40:01.000000000 -0400
@@ -500,7 +500,7 @@
memcpy(sclp_tty->flip.char_buf_ptr, buf, count);
if (count < 2 ||
(strncmp ((const char *) buf + count - 2, "^n", 2) &&
- strncmp ((const char *) buf + count - 2, "\0252n", 2))) {
+ strncmp ((const char *) buf + count - 2, "\252n", 2))) {
sclp_tty->flip.char_buf_ptr[count] = '\n';
count++;
} else
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/