diff options
author | Suphanat Chunhapanya <haxx.pop@gmail.com> | 2018-09-03 03:19:24 +0700 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-09-07 14:03:55 -0400 |
commit | 5e1d36c7db50d977c4a9a1ed9e80ac9800a6077e (patch) | |
tree | e0f03c5f0c747acd5a821cb09eea38814abf74c2 /src/test | |
parent | 8e57986e7d826141727fc3d538b33882dc4aca91 (diff) | |
download | tor-5e1d36c7db50d977c4a9a1ed9e80ac9800a6077e.tar.gz tor-5e1d36c7db50d977c4a9a1ed9e80ac9800a6077e.zip |
bug: Use PATH_SEPARATOR instead of slash
In function get_fname_suffix, previously it uses /, but in fact it
should use PATH_SEPARATOR.
Diffstat (limited to 'src/test')
-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; } |