From fe962a2055234adf407999f0557ae25441ca5c35 Mon Sep 17 00:00:00 2001 From: Kjartan Maraas Date: Thu, 29 Mar 2001 20:31:40 +0000 Subject: Big header cleanups and nntp compile fix svn path=/trunk/; revision=9024 --- camel/providers/nntp/camel-nntp-grouplist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'camel/providers/nntp/camel-nntp-grouplist.c') diff --git a/camel/providers/nntp/camel-nntp-grouplist.c b/camel/providers/nntp/camel-nntp-grouplist.c index d7ee85d182..578a6eba66 100644 --- a/camel/providers/nntp/camel-nntp-grouplist.c +++ b/camel/providers/nntp/camel-nntp-grouplist.c @@ -98,7 +98,7 @@ camel_nntp_get_grouplist_from_file (CamelNNTPStore *store, CamelException *ex) } /* read the time */ - if (!fgets (buf, 300, fp)) { + if (!fgets (buf, sizeof (buf), fp)) { camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, _("Unable to load grouplist file for %s: %s"), CAMEL_SERVICE(store)->url->host, @@ -113,7 +113,7 @@ camel_nntp_get_grouplist_from_file (CamelNNTPStore *store, CamelException *ex) sscanf (buf, "%lu", &time); list->time = time; - while (fgets (buf, 300, fp)) { + while (fgets (buf, sizeof (buf), fp)) { CamelNNTPGroupListEntry *entry = g_new (CamelNNTPGroupListEntry, 1); char **split_line = g_strsplit (buf, " ", 4); -- cgit v1.2.3