SVN revision: 32425
This commit is contained in:
Sebastian Dransfeld 2007-11-07 18:31:27 +00:00
parent 1e742c57d1
commit 8eba739a53
1 changed files with 8 additions and 11 deletions

19
imap2.c
View File

@ -287,12 +287,7 @@ _mail_imap_server_data (void *data, int type, void *event)
if (data == reply) if (data == reply)
E_FREE (reply); E_FREE (reply);
else else
{ size -= ic->prev.size;
data -= 2;
data = NULL;
data += 2;
size -= ic->prev.size;
}
} }
if (reply) if (reply)
@ -591,11 +586,13 @@ elements (char *p)
{ {
int count = 0; int count = 0;
if (!p) return 0; if (!p) return 0;
do { do
if (*p) count++; {
p = strchr (p, ' '); if (*p) count++;
if (p) p++; p = strchr (p, ' ');
} while (p); if (p) p++;
}
while (p);
return count; return count;
} }