summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-01-01 17:31:40 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2012-01-01 17:31:40 +0100
commitd5fd9afa76176c889196bb0631bfed77431b295d (patch)
tree07dd0e5aa3006208b9c74c88414a84c5196675a4 /libc/unistd
parent83781e426ea6debaaa69ee884203c31c6cc08b47 (diff)
getpass: s/sizeof(buf)-1/sizeof(buf)/ in fgets
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libc/unistd')
-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')