checks
This commit is contained in:
1 parent
a57cfdde70
commit
7f5590d942
1 file changed
+2
-2
@@ -205,8 +205,8 @@ char *newfilenamemcopyEx(const char *preferredName, const char *suffix, savePath
|
||||
|
||||
// user preference save paths
|
||||
size_t save_path_len = path_size(e_save_path);
|
||||
if (save_path_len) {
|
||||
snprintf(pfn, len, "%s%s", g_session.defaultPaths[e_save_path], PATHSEP);
|
||||
if (save_path_len < FILE_PATH_SIZE ) {
|
||||
snprintf(pfn, len, "%.*s%s", (int)save_path_len, g_session.defaultPaths[e_save_path], PATHSEP);
|
||||
pfn += save_path_len + strlen(PATHSEP);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user