aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-07-20 16:04:06 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-07-20 16:04:06 +0000
commit3ff9e98486c5c883a0d825ce3313415edeb838d5 (patch)
tree2395bc1638e6d77775aa15574bfbf3c75ab8d91d
parentfcb6b0b6957003e1db8bca9acf42bddd9c677584 (diff)
downloadfetchmail-3ff9e98486c5c883a0d825ce3313415edeb838d5.tar.gz
fetchmail-3ff9e98486c5c883a0d825ce3313415edeb838d5.tar.bz2
fetchmail-3ff9e98486c5c883a0d825ce3313415edeb838d5.zip
Use sizeof rather than macro to communicate buffer size to fgets.
svn path=/trunk/; revision=4151
-rw-r--r--netrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netrc.c b/netrc.c
index 03c6e5be..1eaf85df 100644
--- a/netrc.c
+++ b/netrc.c
@@ -102,7 +102,7 @@ parse_netrc (file)
premature_token = NULL;
/* While there are lines in the file... */
- while (fgets(buf, POPBUFSIZE, fp))
+ while (fgets(buf, sizeof(buf) - 1, fp))
{
ln++;