aboutsummaryrefslogtreecommitdiffstats
path: root/mail2.c
diff options
context:
space:
mode:
authorltoetsch <ltoetsch@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-03-16 09:28:08 +0000
committerltoetsch <ltoetsch@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-03-16 09:28:08 +0000
commit8cb47a24a9ab1b5bbf81819d4567be4308db2b54 (patch)
treed9f5d967aa61555c0e264ebb36e0739f64bfb171 /mail2.c
parentf28003f1779e7e560ccc70e90d88b376208f6cd6 (diff)
downloadlcd4linux-8cb47a24a9ab1b5bbf81819d4567be4308db2b54.tar.gz
[lcd4linux @ 2001-03-16 09:28:08 by ltoetsch]
bugfixes git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@126 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'mail2.c')
-rw-r--r--mail2.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mail2.c b/mail2.c
index af095fc..c26830f 100644
--- a/mail2.c
+++ b/mail2.c
@@ -1,4 +1,4 @@
-/* $Id: mail2.c,v 1.3 2001/03/15 14:25:05 ltoetsch Exp $
+/* $Id: mail2.c,v 1.4 2001/03/16 09:28:08 ltoetsch Exp $
*
* mail: pop3, imap, news functions
*
@@ -20,6 +20,9 @@
*
*
* $Log: mail2.c,v $
+ * Revision 1.4 2001/03/16 09:28:08 ltoetsch
+ * bugfixes
+ *
* Revision 1.3 2001/03/15 14:25:05 ltoetsch
* added unread/total news
*
@@ -222,11 +225,11 @@ static int check_nntp(char *user, char *pass, char *machine,
err = 0;
totg = unsg = 0; /* total, unseen */
while (fgets(line, sizeof(line)-1, fp) && err < 5) {
- char group[BUFLEN];
+ char group[256];
char *p;
int smin, smax, lmin, lmax;
- if (sscanf(line, "%s:", group) != 1) {
+ if (sscanf(line, "%255[^:]:", group) != 1) {
error("Couldn't read group in '%s'", line);
err++;
continue;