Mercurial > audlegacy
changeset 2940:b51cc33881c2 trunk
Use g_ascii_strcasecmp() instead of strncmp().
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Fri, 29 Jun 2007 08:57:43 -0500 |
parents | 964413953abd |
children | d9a2434375f1 |
files | src/audtool/audtool_handlers_general.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audtool/audtool_handlers_general.c Fri Jun 29 08:56:07 2007 -0500 +++ b/src/audtool/audtool_handlers_general.c Fri Jun 29 08:57:43 2007 -0500 @@ -76,11 +76,11 @@ { if (argc > 1) { - if (!strncmp(argv[1],"on",2)) { + if (!g_ascii_strcasecmp(argv[1], "on")) { audacious_remote_main_win_toggle(dbus_proxy, TRUE); return; } - else if (!strncmp(argv[1],"off",3)) { + else if (!g_ascii_strcasecmp(argv[1], "off")) { audacious_remote_main_win_toggle(dbus_proxy, FALSE); return; } @@ -93,11 +93,11 @@ { if (argc > 1) { - if (!strncmp(argv[1],"on",2)) { + if (!g_ascii_strcasecmp(argv[1], "on")) { audacious_remote_pl_win_toggle(dbus_proxy, TRUE); return; } - else if (!strncmp(argv[1],"off",3)) { + else if (!g_ascii_strcasecmp(argv[1], "off")) { audacious_remote_pl_win_toggle(dbus_proxy, FALSE); return; } @@ -110,11 +110,11 @@ { if (argc > 1) { - if (!strncmp(argv[1],"on",2)) { + if (!g_ascii_strcasecmp(argv[1] ,"on")) { audacious_remote_eq_win_toggle(dbus_proxy, TRUE); return; } - else if (!strncmp(argv[1],"off",3)) { + else if (!g_ascii_strcasecmp(argv[1] ,"off")) { audacious_remote_eq_win_toggle(dbus_proxy, FALSE); return; }