mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-03 04:23:42 -05:00
Replace strdup_printf with build_filename
This commit is contained in:
parent
c512f81c9c
commit
7f621a4a91
1 changed files with 2 additions and 2 deletions
|
@ -262,7 +262,7 @@ static char ** get_ssh ( unsigned int *length )
|
|||
return NULL;
|
||||
}
|
||||
|
||||
path = g_strdup_printf ( "%s/%s", cache_dir, SSH_CACHE_FILE );
|
||||
path = g_build_filename ( cache_dir, SSH_CACHE_FILE, NULL );
|
||||
retv = history_get_list ( path, length );
|
||||
g_free ( path );
|
||||
num_favorites = ( *length );
|
||||
|
@ -276,7 +276,7 @@ static char ** get_ssh ( unsigned int *length )
|
|||
|
||||
FILE *fd = NULL;
|
||||
const char *hd = getenv ( "HOME" );
|
||||
path = g_strdup_printf ( "%s/%s", hd, ".ssh/config" );
|
||||
path = g_build_filename ( hd, ".ssh", "config", NULL );
|
||||
fd = fopen ( path, "r" );
|
||||
|
||||
if ( fd != NULL ) {
|
||||
|
|
Loading…
Reference in a new issue