diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/getttyent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/getttyent.c b/lib/libc/gen/getttyent.c index 1fb1960..ac3e138 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()) ) |