edit/etags.c: Use function 'g_build_filename' instread of 'g_strdup_printf' for making path to file

This commit is contained in:
Slava Zanko 2009-03-05 12:48:47 +02:00
parent 00567b61b2
commit 6c39432c98

View File

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