mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user