From 5afcddae37d52ebac81ba917417c5a51e0e5083f Mon Sep 17 00:00:00 2001 From: David Nugent Date: Sun, 13 Apr 1997 16:55:56 +0000 Subject: [PATCH] Fix typo. --- lib/libc/gen/getttyent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/gen/getttyent.c b/lib/libc/gen/getttyent.c index 1fb1960546d7..ac3e1381dd8b 100644 --- a/lib/libc/gen/getttyent.c +++ b/lib/libc/gen/getttyent.c @@ -57,7 +57,7 @@ getttynam(tty) { register struct ttyent *t; - if (strnchr(tty, "/dev/", 5) == 0) + if (strncmp(tty, "/dev/", 5) == 0) tty += 5; setttyent(); while ( (t = getttyent()) )