aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/nntp/camel-nntp-grouplist.c
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@src.gnome.org>2001-03-30 04:31:40 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2001-03-30 04:31:40 +0800
commitfe962a2055234adf407999f0557ae25441ca5c35 (patch)
treece9254cb08e91cf6528cde689139bd5e4e535ba7 /camel/providers/nntp/camel-nntp-grouplist.c
parent8a0c0a680252b389ad3b3a58090690925b9f99b1 (diff)
downloadgsoc2013-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.c4
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);