From 96701cc78b59b8fdc6816e58d24d96d3f27e9ae4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 1 Dec 1998 19:29:53 +0000 Subject: Bug in FAQ item R5 fixed. svn path=/trunk/; revision=2249 --- netrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netrc.c') diff --git a/netrc.c b/netrc.c index 494a3c96..a5263c41 100644 --- a/netrc.c +++ b/netrc.c @@ -119,7 +119,7 @@ parse_netrc (file) /* Strip trailing CRLF */ p = buf + strlen(buf) - 1; - while (*p && isspace(*p)) + while ((p > buf) && *p && isspace(*p)) *p-- = '\0'; /* Parse the line. */ -- cgit v1.2.3