diff options
Diffstat (limited to 'libc/unistd/getpass.c')
-rw-r--r-- | libc/unistd/getpass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/unistd/getpass.c b/libc/unistd/getpass.c index dd927ab87..c311a153a 100644 --- a/libc/unistd/getpass.c +++ b/libc/unistd/getpass.c @@ -75,7 +75,7 @@ char * getpass (const char *prompt) fflush(out); /* Read the password. */ - if (!fgets (buf, sizeof(buf)-1, in)) + if (!fgets (buf, sizeof(buf), in)) buf[0] = '\0'; nread = strlen(buf); if (nread > 0 && buf[nread - 1] == '\n') |