Commit ef44d78a authored by Deucе's avatar Deucе 👌🏾
Browse files

Try to remove the extra "SyncTERM" from the BBS cache path on Win32

Reported by Booch (Thanks!)
parent e5207b56
Pipeline #2268 passed with stage
in 8 minutes and 52 seconds
......@@ -1044,7 +1044,7 @@ char *get_syncterm_filename(char *fn, int fnlen, int type, int shared)
}
if(we_got_this) {
// Convert unicode to string using snprintf()
if (type == SYNCTERM_DEFAULT_TRANSFER_PATH) {
if (type == SYNCTERM_DEFAULT_TRANSFER_PATH || type == SYNCTERM_PATH_CACHE) {
if(snprintf(fn, fnlen, "%S", path) >= fnlen)
we_got_this=FALSE;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment