diff options
Diffstat (limited to 'netrc.c')
-rw-r--r-- | netrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |