aboutsummaryrefslogtreecommitdiffstats
path: root/netrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'netrc.c')
-rw-r--r--netrc.c2
1 files changed, 1 insertions, 1 deletions
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. */