diff options
author | ltoetsch <> | 2001-03-16 09:28:08 +0000 |
---|---|---|
committer | ltoetsch <> | 2001-03-16 09:28:08 +0000 |
commit | b0650f9131a98a02ca65ab15a7f41e99b6822e90 (patch) | |
tree | d9f5d967aa61555c0e264ebb36e0739f64bfb171 /mail2.c | |
parent | 79f5ff58b333f6890791f99318eb1297e0404df5 (diff) | |
download | lcd4linux-b0650f9131a98a02ca65ab15a7f41e99b6822e90.tar.gz |
[lcd4linux @ 2001-03-16 09:28:08 by ltoetsch]
bugfixes
Diffstat (limited to 'mail2.c')
-rw-r--r-- | mail2.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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; |