From: Suphanat Chunhapanya Date: Sun, 2 Sep 2018 20:19:24 +0000 (+0700) Subject: bug: Use PATH_SEPARATOR instead of slash X-Git-Tag: tor-0.3.5.1-alpha~65^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e1d36c7db50d977c4a9a1ed9e80ac9800a6077e;p=thirdparty%2Ftor.git bug: Use PATH_SEPARATOR instead of slash In function get_fname_suffix, previously it uses /, but in fact it should use PATH_SEPARATOR. --- 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; }