Replace use of deprecated g_strcasecmp() by g_ascii_strncasecmp()

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20553 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff
2011-04-10 18:52:27 +00:00
parent abd593e8f0
commit 8a97eb1414
+2 -2
View File
@@ -144,12 +144,12 @@ dom_tree_to_boolean(xmlNodePtr node, gboolean* b)
gchar* text;
text = dom_tree_to_text(node);
if (g_strcasecmp(text, "true") == 0)
if (g_ascii_strncasecmp(text, "true", 4) == 0)
{
*b = TRUE;
return TRUE;
}
else if (g_strcasecmp(text, "false") == 0)
else if (g_ascii_strncasecmp(text, "false", 5) == 0)
{
*b = FALSE;
return TRUE;