From 3ff9e98486c5c883a0d825ce3313415edeb838d5 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 20 Jul 2005 16:04:06 +0000 Subject: Use sizeof rather than macro to communicate buffer size to fgets. svn path=/trunk/; revision=4151 --- netrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netrc.c') 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++; -- cgit v1.2.3