Skip to content

Commit

Permalink
Use g_strconcat() instead of g_strdup_printf("%s%s", ...).
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed Jul 23, 2008
1 parent b0a7f6e commit a01c5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filedata.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a01c5f4

Please sign in to comment.