summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-31 17:58:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-31 17:58:49 +0000
commit905733f7b0f1dc4d93a454da4432a3d740006e7d (patch)
tree712e482ed3c8b408af41a9e4dac8e9b13d777bf1
parent9882a2d7dd846529581c21ede29bfd0ff9cecbb1 (diff)
duh, theo
-rw-r--r--lib/libutil/login_fbtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/login_fbtab.c b/lib/libutil/login_fbtab.c
index 98fadfa71fc..342326ab71d 100644
--- a/lib/libutil/login_fbtab.c
+++ b/lib/libutil/login_fbtab.c
@@ -94,7 +94,7 @@ login_fbtab(tty, uid, gid)
*cp = 0; /* strip comment */
if ((cp = devname = strtok(buf, WSPACE)) == 0)
continue; /* empty or comment */
- if (strncmp(devname, "/dev/", sizeof("/dev/")) != 0 ||
+ if (strncmp(devname, "/dev/", sizeof("/dev/")-1) != 0 ||
(cp = strtok((char *) 0, WSPACE)) == 0 ||
*cp != '0' ||
sscanf(cp, "%o", &prot) == 0 ||