# HG changeset patch # User Christian Hammond # Date 1085644963 0 # Node ID cab225a333b5d7e74698b503d69734d7c90488d0 # Parent 15da00b09b7cb531dfc7eb2c423015fb914d94d9 [gaim-migrate @ 9867] On win32 (and possibly some other setups), any MSN messages with a comma in it were causing a disconnect. Fixed! committer: Tailor Script diff -r 15da00b09b7c -r cab225a333b5 src/protocols/msn/utils.c --- a/src/protocols/msn/utils.c Thu May 27 07:06:06 2004 +0000 +++ b/src/protocols/msn/utils.c Thu May 27 08:02:43 2004 +0000 @@ -251,7 +251,10 @@ end = strchr(c, '\"'); comma = strchr(c, ','); - namelen = (unsigned int)((comma != NULL ? comma : end) - c); + if (comma == NULL || comma > end) + namelen = (unsigned int)(end - c); + else + namelen = (unsigned int)(comma - c); fontface = g_strndup(c, namelen); c = end + 2;