mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
edit/etags.c: Use function 'g_build_filename' instread of 'g_strdup_printf' for making path to file
This commit is contained in:
parent
00567b61b2
commit
6c39432c98
@ -162,7 +162,7 @@ int etags_set_definition_hash(const char *tagfile, const char *start_path,
|
||||
parse_define (chekedstr, &longname, &shortname, &line);
|
||||
if ( *num < MAX_DEFINITIONS - 1 ) {
|
||||
def_hash[*num].filename_len = strlen (filename);
|
||||
fullpath = g_strdup_printf("%s/%s",start_path, filename);
|
||||
fullpath = g_build_filename (start_path, filename, NULL);
|
||||
canonicalize_pathname (fullpath);
|
||||
def_hash[*num].fullpath = g_strdup(fullpath);
|
||||
g_free (fullpath);
|
||||
|
Loading…
Reference in New Issue
Block a user