diff options
-rw-r--r-- | usr.bin/finger/util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c index 19e2f96..2efa310 100644 --- a/usr.bin/finger/util.c +++ b/usr.bin/finger/util.c @@ -411,13 +411,12 @@ int hide(pw) struct passwd *pw; { - char buf[MAXPATHLEN+1]; + char buf[MAXPATHLEN]; if (!pw->pw_dir) return 0; snprintf(buf, sizeof(buf), "%s/.nofinger", pw->pw_dir); - buf[sizeof(buf) - 1] = '\0'; if (access(buf, F_OK) == 0) return 1; |