diff options
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c index 9ce23879..29a0f3ed 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1691,8 +1691,8 @@ move_file (char *src_dir, char *dst_dir, char *fname, int dccpermissions) 0 == dst_dir[0]) return; /* Already in "completed dir" */ - src = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "%s", src_dir, fname); - dst = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "%s", dst_dir, fname); + src = g_build_filename (src_dir, fname, NULL); + dst = g_build_filename (dst_dir, fname, NULL); /* already exists in completed dir? Append a number */ if (file_exists (dst)) |