r22534 - gnucash/branches/2.4/src/backend/xml - [r20553]Replace use of deprecated g_strcasecmp() by g_ascii_strncasecmp()

John Ralls jralls at code.gnucash.org
Tue Nov 6 19:24:02 EST 2012


Author: jralls
Date: 2012-11-06 19:24:02 -0500 (Tue, 06 Nov 2012)
New Revision: 22534
Trac: http://svn.gnucash.org/trac/changeset/22534

Modified:
   gnucash/branches/2.4/src/backend/xml/sixtp-dom-parsers.c
Log:
[r20553]Replace use of deprecated g_strcasecmp() by g_ascii_strncasecmp()

Modified: gnucash/branches/2.4/src/backend/xml/sixtp-dom-parsers.c
===================================================================
--- gnucash/branches/2.4/src/backend/xml/sixtp-dom-parsers.c	2012-11-06 21:34:03 UTC (rev 22533)
+++ gnucash/branches/2.4/src/backend/xml/sixtp-dom-parsers.c	2012-11-07 00:24:02 UTC (rev 22534)
@@ -144,12 +144,12 @@
     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;



More information about the gnucash-changes mailing list