mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
bug: Use PATH_SEPARATOR instead of slash
In function get_fname_suffix, previously it uses /, but in fact it should use PATH_SEPARATOR.
This commit is contained in:
parent
8e57986e7d
commit
5e1d36c7db
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user