diff options
| author | Sam Varshavchik | 2019-01-30 07:06:55 -0500 | 
|---|---|---|
| committer | Sam Varshavchik | 2019-01-30 07:06:55 -0500 | 
| commit | e17b57ecbd5e1dfdc57ac8946393521d6537017c (patch) | |
| tree | 24c99f853f385cf0b0e11a14d0f80af347d0a056 /imap/pop3dserver.c | |
| parent | 56bf314eac5e86e05f48a8b26b7a374468768a5d (diff) | |
| download | courier-libs-e17b57ecbd5e1dfdc57ac8946393521d6537017c.tar.bz2 | |
Fix parsing.
Diffstat (limited to 'imap/pop3dserver.c')
| -rw-r--r-- | imap/pop3dserver.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/imap/pop3dserver.c b/imap/pop3dserver.c index 079da9e..aa5ae24 100644 --- a/imap/pop3dserver.c +++ b/imap/pop3dserver.c @@ -186,6 +186,7 @@ static struct msglist **readpop3dlist(unsigned long *uid)  	size_t i;  	int vernum=0; +	unsigned long size;  	uidv=time(NULL); @@ -255,10 +256,11 @@ static struct msglist **readpop3dlist(unsigned long *uid)  			// We have extra room at the end.  			strcat(p, ":0"); -			if (sscanf(p, "%lu %lu:%lu:%d", &m->size, +			if (sscanf(p, "%lu %lu:%lu:%d", &size,  				   &m->uid.n, &m->uid.uidv,  				   &m->isutf8) == 4)  			{ +				m->size=size;  				m->next=list;  				list=m;  				++mcnt; | 
