From: Timo Sirainen Date: Wed, 4 Feb 2009 18:54:49 +0000 (-0500) Subject: SEARCH: RETURN (PARTIAL) was broken. X-Git-Tag: 1.2.beta1~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b70c95140cf9abef23cb1c303f6f6ce110679e4f;p=thirdparty%2Fdovecot%2Fcore.git SEARCH: RETURN (PARTIAL) was broken. --HG-- branch : HEAD --- diff --git a/src/imap/cmd-search.c b/src/imap/cmd-search.c index 5213d093c0..1b255d62c1 100644 --- a/src/imap/cmd-search.c +++ b/src/imap/cmd-search.c @@ -59,7 +59,7 @@ imap_partial_range_parse(struct imap_search_context *ctx, const char *str) ctx->partial1 = ctx->partial1 * 10 + *str-'0'; if (*str != ':') return -1; - for (; *str >= '0' && *str <= '9'; str++) + for (str++; *str >= '0' && *str <= '9'; str++) ctx->partial2 = ctx->partial2 * 10 + *str-'0'; return *str == '\0' ? 0 : -1; }