diff options
-rw-r--r-- | src/test/testing_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/testing_common.c b/src/test/testing_common.c index 3880bca9c5..56cac99eb8 100644 --- a/src/test/testing_common.c +++ b/src/test/testing_common.c @@ -112,8 +112,8 @@ get_fname_suffix(const char *name, const char *suffix) setup_directory(); if (!name) return temp_dir; - tor_snprintf(buf,sizeof(buf),"%s/%s%s%s",temp_dir,name,suffix ? "_" : "", - suffix ? suffix : ""); + tor_snprintf(buf,sizeof(buf),"%s%s%s%s%s", temp_dir, PATH_SEPARATOR, name, + suffix ? "_" : "", suffix ? suffix : ""); return buf; } |