summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/unistd/getpass.c2
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')