Use g_strconcat() instead of g_strdup_printf("%s%s", ...).
authorLaurent Monin <geeqie@norz.org>
Wed, 23 Jul 2008 12:45:59 +0000 (12:45 +0000)
committerLaurent Monin <geeqie@norz.org>
Wed, 23 Jul 2008 12:45:59 +0000 (12:45 +0000)
src/filedata.c

index 4f65b2c..bfb4b5d 100644 (file)
@@ -1500,7 +1500,7 @@ static void file_data_update_ci_dest_preserve_ext(FileData *fd, const gchar *des
        gchar *base = remove_extension_from_path(dest_path);
        gchar *old_path = fd->change->dest;
        
-       fd->change->dest = g_strdup_printf("%s%s", base, extension);
+       fd->change->dest = g_strconcat(base, extension, NULL);
        file_data_update_planned_change_hash(fd, old_path, fd->change->dest);
        
        g_free(old_path);