Mercurial > pidgin
diff src/protocols/oscar/email.c @ 10996:acbd980d6179
[gaim-migrate @ 12837]
I hope cookie16 is always 16 bytes.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 09 Jun 2005 05:08:51 +0000 |
parents | 92cbf9713795 |
children |
line wrap: on
line diff
--- a/src/protocols/oscar/email.c Thu Jun 09 05:04:23 2005 +0000 +++ b/src/protocols/oscar/email.c Thu Jun 09 05:08:51 2005 +0000 @@ -88,7 +88,7 @@ cookie16 = aimbs_getraw(bs, 16); /* Mail cookie sent above */ /* See if we already have some info associated with this cookie */ - for (new=sess->emailinfo; (new && strncmp(cookie16, new->cookie16, 16)); new=new->next); + for (new = sess->emailinfo; (new && memcmp(cookie16, new->cookie16, 16)); new = new->next); if (new) { /* Free some of the old info, if it exists */ free(new->cookie8);