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

Fix name matching for ssh-dialog, fix bug 80.

This commit is contained in:
Dave Davenport 2014-09-01 19:52:48 +02:00
parent 5d5b4aac9f
commit 5f33d506b9

View file

@ -154,14 +154,15 @@ static char ** get_ssh ( unsigned int *length )
; ;
} }
for ( stop = start; isalnum ( buffer[stop] ) || for ( stop = start; !isspace(buffer[stop]) ; stop++ ) {
buffer[stop] == '_' || // We do not want to show wildcard entries, as you cannot ssh to them.
buffer[stop] == '.'; stop++ ) { if ( buffer[stop] == '?' || buffer[stop] == '*' ) {
; stop = start;
break;
}
} }
int found = 0; int found = 0;
if ( start == stop ) { if ( start == stop ) {
continue; continue;
} }