diff options
author | davidn <davidn@FreeBSD.org> | 1997-04-13 16:55:56 +0000 |
---|---|---|
committer | davidn <davidn@FreeBSD.org> | 1997-04-13 16:55:56 +0000 |
commit | d0ab7d0baaede57260efbc9df4dacfe242b15b4a (patch) | |
tree | c8d46ae81d04afc2a9937251f16904171f9bdcfb /lib/libc/gen/getttyent.c | |
parent | efb4d7374bb4731a70f7390e2559b436b2939561 (diff) | |
download | FreeBSD-src-d0ab7d0baaede57260efbc9df4dacfe242b15b4a.zip FreeBSD-src-d0ab7d0baaede57260efbc9df4dacfe242b15b4a.tar.gz |
Fix typo.
Diffstat (limited to 'lib/libc/gen/getttyent.c')
-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()) ) |