1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

get_ssh(): Use g_ascii_strcasecmp() instead of strcasecmp().

The latter is not always available.
This commit is contained in:
Tilman Blumenbach 2015-01-14 16:01:48 +01:00
parent 6fc18a21f1
commit 5584e2eb95

View file

@ -151,7 +151,7 @@ static char ** get_ssh ( unsigned int *length )
// Skip empty lines and comment lines. Also skip lines where the
// keyword is not "Host".
if ( ! token || *token == '#' || strcasecmp( token, "Host" ) ) {
if ( ! token || *token == '#' || g_ascii_strcasecmp( token, "Host" ) ) {
continue;
}
@ -171,7 +171,7 @@ static char ** get_ssh ( unsigned int *length )
// given num_favorites is max 25.
int found = 0;
for ( unsigned int j = 0; j < num_favorites; j++ ) {
if ( ! strcasecmp ( token, retv[j] ) ) {
if ( ! g_ascii_strcasecmp ( token, retv[j] ) ) {
found = 1;
break;
}