summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-07-02 05:08:39 +0000
committerRoland McGrath <roland@gnu.org>1994-07-02 05:08:39 +0000
commit90c3b6de6ac685fe1f7455f9cb7393d48d192a17 (patch)
tree8c3411bc9380d588cf4ed841b9000a761088e489 /misc
parent9ad01b32e1bca4323cfcea5a9b439ae8eeb42431 (diff)
entered into RCS
Diffstat (limited to 'misc')
-rw-r--r--misc/getpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/getpass.c b/misc/getpass.c
index fec5f4d726..ec535c1cca 100644
--- a/misc/getpass.c
+++ b/misc/getpass.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1993 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -78,7 +78,7 @@ getpass (prompt)
buf[0] = '\0';
else if (buf[nread - 1] == '\n')
/* Remove the newline. */
- buf[nread] = '\0';
+ buf[nread - 1] = '\0';
/* Restore echoing. */
if (echo_off)