diff options
author | Kjartan Maraas <kmaraas@src.gnome.org> | 2001-03-30 04:31:40 +0800 |
---|---|---|
committer | Kjartan Maraas <kmaraas@src.gnome.org> | 2001-03-30 04:31:40 +0800 |
commit | fe962a2055234adf407999f0557ae25441ca5c35 (patch) | |
tree | ce9254cb08e91cf6528cde689139bd5e4e535ba7 /camel/providers/nntp/camel-nntp-grouplist.c | |
parent | 8a0c0a680252b389ad3b3a58090690925b9f99b1 (diff) | |
download | gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.gz gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.bz2 gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.lz gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.xz gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.tar.zst gsoc2013-evolution-fe962a2055234adf407999f0557ae25441ca5c35.zip |
Big header cleanups and nntp compile fix
svn path=/trunk/; revision=9024
Diffstat (limited to 'camel/providers/nntp/camel-nntp-grouplist.c')
-rw-r--r-- | camel/providers/nntp/camel-nntp-grouplist.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |