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:
parent
5584e2eb95
commit
49fa62b4c3
1 changed files with 1 additions and 1 deletions
|
@ -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 )++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue