From 8cb47a24a9ab1b5bbf81819d4567be4308db2b54 Mon Sep 17 00:00:00 2001 From: ltoetsch Date: Fri, 16 Mar 2001 09:28:08 +0000 Subject: [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 --- mail2.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mail2.c') 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; -- cgit v1.2.3