comparison src/filedata.c @ 920:408879d2a660

Use g_strconcat() instead of g_strdup_printf("%s%s", ...).
author zas_
date Wed, 23 Jul 2008 12:45:59 +0000
parents 19b7349bb8c8
children 893cd191db23
comparison
equal deleted inserted replaced
919:3a939c88305c 920:408879d2a660
1498 { 1498 {
1499 const char *extension = extension_from_path(fd->change->source); 1499 const char *extension = extension_from_path(fd->change->source);
1500 gchar *base = remove_extension_from_path(dest_path); 1500 gchar *base = remove_extension_from_path(dest_path);
1501 gchar *old_path = fd->change->dest; 1501 gchar *old_path = fd->change->dest;
1502 1502
1503 fd->change->dest = g_strdup_printf("%s%s", base, extension); 1503 fd->change->dest = g_strconcat(base, extension, NULL);
1504 file_data_update_planned_change_hash(fd, old_path, fd->change->dest); 1504 file_data_update_planned_change_hash(fd, old_path, fd->change->dest);
1505 1505
1506 g_free(old_path); 1506 g_free(old_path);
1507 g_free(base); 1507 g_free(base);
1508 } 1508 }