diff options
author | Berke Viktor <bviktor@hexchat.org> | 2013-05-04 18:21:48 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2013-05-04 18:21:48 +0200 |
commit | fb01d4e9ab9739e11499538d85e8932fb97a2c57 (patch) | |
tree | 46d0d3e258b2c7b929dce76ab43723e2b79b3c0a /src/common/util.c | |
parent | b2317d88007270f8b49d3282face90a7f2716e7d (diff) |
Replace g_strdup_printf with g_build_filename where possible
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)) |