GNOME Bugzilla – Bug 560440
GNOME Goal: Remove deprecated GLib symbols
Last modified: 2008-12-23 14:27:36 UTC
See http://live.gnome.org/GnomeGoals/RemoveDeprecatedSymbols/Glib Here are the files+lines using deprecated GLib symbols in this module: gnome-utils/logview/logview.c:249: if (selected!=NULL && g_strncasecmp (log->name, selected, -1)==0)
Created attachment 122529 [details] [review] use g_ascii_strncasecmp Replace g_strncasecmp by g_ascii_strncasecmp; as log->name is ascii (and treated as is in other functions of that file).
is g_ascii_strncasecmp (log->name, selected, -1) the same as g_ascii_strcasecmp (log->name, selected) ?
Yes; so this could as well use g_ascii_strcasecmp. (but note other strncasecmp calls are made with n = 255)
Logview has been rewritten, so this is fixed in trunk.