aboutsummaryrefslogtreecommitdiffstats
path: root/netrc.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-12-01 19:29:53 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-12-01 19:29:53 +0000
commit96701cc78b59b8fdc6816e58d24d96d3f27e9ae4 (patch)
tree8cdf7ce68f8f13d6988d6241266fa3f1ed4da1cc /netrc.c
parentf20e0dc3fb887fb41ab7fb22b435b2ef34ce62b9 (diff)
downloadfetchmail-96701cc78b59b8fdc6816e58d24d96d3f27e9ae4.tar.gz
fetchmail-96701cc78b59b8fdc6816e58d24d96d3f27e9ae4.tar.bz2
fetchmail-96701cc78b59b8fdc6816e58d24d96d3f27e9ae4.zip
Bug in FAQ item R5 fixed.
svn path=/trunk/; revision=2249
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. */