# HG changeset patch # User Elliott Sales de Andrade # Date 1282457827 0 # Node ID 8490c8eb4aa8d3261322604b5be49e5b59ffac8d # Parent c60c9c95bb00f1ae8e40f95ebc6c0a1810b645a6 We already have the length of the string. Don't need to call strlen. diff -r c60c9c95bb00 -r 8490c8eb4aa8 libpurple/protocols/msn/msnutils.c --- 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]);