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

get_ssh(): Use g_strdup() instead of strdup().

The latter is not always available.
This commit is contained in:
Tilman Blumenbach 2015-01-14 16:02:37 +01:00
parent 5584e2eb95
commit 49fa62b4c3

View file

@ -183,7 +183,7 @@ static char ** get_ssh ( unsigned int *length )
// Add this host name to the list.
retv = g_realloc ( retv, ( ( *length ) + 2 ) * sizeof ( char* ) );
retv[( *length )] = strdup ( token );
retv[( *length )] = g_strdup ( token );
retv[( *length ) + 1] = NULL;
( *length )++;
}