1
0
Fork 0
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:
Dave Davenport 2016-01-06 12:42:53 +01:00
parent c512f81c9c
commit 7f621a4a91

View file

@ -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 ) {