szActiveSrvGroup can be NULL so it crashes in _strnicmp(). Here is a fix:
Index: fam_13servclist.cpp
===================================================================
--- fam_13servclist.cpp (revision 14409)
+++ fam_13servclist.cpp (working copy)
@@ -963,7 +963,7 @@
}
if (strcmpnull(szActiveSrvGroup, szLocalGroup) &&
- (strlennull(szActiveSrvGroup) >= strlennull(szLocalGroup) ||
_strnicmp(szActiveSrvGroup, szLocalGroup, strlennull(szLocalGroup))))
+ (strlennull(szActiveSrvGroup) >= strlennull(szLocalGroup) || (
szActiveSrvGroup && _strnicmp(szActiveSrvGroup, szLocalGroup,
strlennull(szLocalGroup)))))
{ // contact moved to new group or sub-group or not to master group
bRegroup = 1;
}
Original issue reported on code.google.com by ryo.rab...@gmail.com on 1 Mar 2013 at 2:33
Original issue reported on code.google.com by
ryo.rab...@gmail.com
on 1 Mar 2013 at 2:33Attachments: