diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-03-09 12:17:55 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-03-09 12:17:55 +0000 |
commit | 72930e0be3a8841e8149b246542832128310c350 (patch) | |
tree | c4cb68d6557440d1144126dac6f8bacbfb72a191 /src/fe-text/mainwindows.c | |
parent | 7df46597e17ff7af4a660ab47673fe2cabc91db6 (diff) | |
download | irssi-72930e0be3a8841e8149b246542832128310c350.zip |
Use g_ascii_str{,n}casecmp for case insensitive comparison with
ascii only strings.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4739 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/mainwindows.c')
-rw-r--r-- | src/fe-text/mainwindows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index 398c5b58..125fea97 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -974,7 +974,7 @@ static void cmd_window_stick(const char *data) while (*data == ' ') data++; } - if (g_strncasecmp(data, "OF", 2) == 0 || i_toupper(*data) == 'N') { + if (g_ascii_strncasecmp(data, "OF", 2) == 0 || i_toupper(*data) == 'N') { /* unset sticky */ if (!WINDOW_GUI(win)->sticky) { printformat_window(win, MSGLEVEL_CLIENTERROR, |