From a0666c938f541c79584638fa3ca43d5250d95e29 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 16 Sep 1997 15:38:37 +0000 Subject: Fix bug in number-scanning. svn path=/trunk/; revision=1347 --- imap.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/imap.c b/imap.c index 0668ff36..53d9a11c 100644 --- a/imap.c +++ b/imap.c @@ -63,10 +63,8 @@ int imap_ok (int sock, char *argbuf) */ unseen = 0; for (cp = buf; *cp && !isdigit(*cp); cp++) - { - unseen = atoi(cp); - break; - } + continue; + unseen = atoi(cp); } if (strstr(buf, "FLAGS")) seen = (strstr(buf, "Seen") != (char *)NULL); -- cgit v1.2.3