Mercurial > pidgin
changeset 30427:8490c8eb4aa8
We already have the length of the string. Don't need to call strlen.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 22 Aug 2010 06:17:07 +0000 |
parents | c60c9c95bb00 |
children | aa7c39c39af5 |
files | libpurple/protocols/msn/msnutils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msnutils.c Sun Aug 22 06:16:37 2010 +0000 +++ b/libpurple/protocols/msn/msnutils.c Sun Aug 22 06:17:07 2010 +0000 @@ -541,7 +541,7 @@ chlStringParts = (unsigned int *)buf; /* this is magic */ - for (i = 0; i < (strlen(buf) / 4); i += 2) { + for (i = 0; i < (len / 4); i += 2) { long long temp; chlStringParts[i] = GUINT_TO_LE(chlStringParts[i]);