diff options
author | 1996-07-31 17:58:48 +0000 | |
---|---|---|
committer | 1996-07-31 17:58:48 +0000 | |
commit | e6b68712a0d35cee628335570f6bd5b32f8ee413 (patch) | |
tree | bbe9dd59f27cef084b93e61f127642c63f571ef6 /lib/libutil/login_fbtab.c | |
parent | someone want to write login_fbtab.3? (diff) | |
download | wireguard-openbsd-e6b68712a0d35cee628335570f6bd5b32f8ee413.tar.xz wireguard-openbsd-e6b68712a0d35cee628335570f6bd5b32f8ee413.zip |
duh, theo
Diffstat (limited to 'lib/libutil/login_fbtab.c')
-rw-r--r-- | lib/libutil/login_fbtab.c | 2 |
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 || |