1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

In ssh config check for Host[::space::]: #101

This commit is contained in:
Qball Cow 2015-01-06 10:03:15 +01:00
parent f6f49b3968
commit d0f9f6f067

View file

@ -138,7 +138,7 @@ static char ** get_ssh ( unsigned int *length )
if ( fd != NULL ) {
char buffer[1024];
while ( fgets ( buffer, 1024, fd ) != NULL ) {
if ( strncasecmp ( buffer, "Host", 4 ) == 0 ) {
if ( strncasecmp ( buffer, "Host", 4 ) == 0 && isspace ( buffer[4] ) ) {
int start = 0, stop = 0;
buffer[strlen ( buffer ) - 1] = '\0';