From 5584e2eb95b4ba727094d43a6a59fdbcd43aa6b3 Mon Sep 17 00:00:00 2001 From: Tilman Blumenbach Date: Wed, 14 Jan 2015 16:01:48 +0100 Subject: [PATCH] get_ssh(): Use g_ascii_strcasecmp() instead of strcasecmp(). The latter is not always available. --- source/ssh-dialog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ssh-dialog.c b/source/ssh-dialog.c index fd203ca5..e17ae022 100644 --- a/source/ssh-dialog.c +++ b/source/ssh-dialog.c @@ -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; }