pidgin: c8130906: We already have the length of the string...
qulogic at pidgin.im
qulogic at pidgin.im
Mon Aug 23 01:32:31 EDT 2010
----------------------------------------------------------------------
Revision: c8130906dcdd030bff2ffc1beb28e32508170f5b
Parent: 9c4dea3b041aaf2258a09ffc68efd86acf274c2e
Author: qulogic at pidgin.im
Date: 08/22/10 02:17:07
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/c8130906dcdd030bff2ffc1beb28e32508170f5b
Changelog:
We already have the length of the string. Don't need to call strlen.
Changes against parent 9c4dea3b041aaf2258a09ffc68efd86acf274c2e
patched libpurple/protocols/msn/msnutils.c
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/msnutils.c 072a6f38e49bfbe94a8a9a94c97b79047ba99366
+++ libpurple/protocols/msn/msnutils.c 47071bcf8a6100e27f92c3cdf9c64f2b6ea29b3e
@@ -541,7 +541,7 @@ msn_handle_chl(char *input, char *output
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]);
More information about the Commits
mailing list