From 90c3b6de6ac685fe1f7455f9cb7393d48d192a17 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 2 Jul 1994 05:08:39 +0000 Subject: entered into RCS --- misc/getpass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc') 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) -- cgit v1.2.3