From 6c39432c9802903223ed0e50b2cb822c9ba5ba6b Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Thu, 5 Mar 2009 12:48:47 +0200 Subject: [PATCH] edit/etags.c: Use function 'g_build_filename' instread of 'g_strdup_printf' for making path to file --- edit/etags.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/etags.c b/edit/etags.c index 4bbea0d86..babc2f23b 100644 --- a/edit/etags.c +++ b/edit/etags.c @@ -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);