From: <dat...@us...> - 2006-04-17 00:17:17
|
Revision: 16043 Author: datallah Date: 2006-04-16 17:17:00 -0700 (Sun, 16 Apr 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16043&view=rev Log Message: ----------- crashes inform me that g_utf8_strdown and/or g_utf8_normalize can return NULL when the input string is not NULL Modified Paths: -------------- trunk/src/util.c Modified: trunk/src/util.c =================================================================== --- trunk/src/util.c 2006-04-16 20:18:17 UTC (rev 16042) +++ trunk/src/util.c 2006-04-17 00:17:00 UTC (rev 16043) @@ -2667,7 +2667,7 @@ tmp1 = g_utf8_strdown(str, -1); tmp2 = g_utf8_normalize(tmp1, -1, G_NORMALIZE_DEFAULT); - g_snprintf(buf, sizeof(buf), "%s", tmp2); + g_snprintf(buf, sizeof(buf), "%s", tmp2 ? tmp2 : ""); g_free(tmp2); g_free(tmp1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |