mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
reduce size since this wasnt the root cause
This commit is contained in:
@@ -190,12 +190,11 @@ char *newfilenamemcopyEx(const char *preferredName, const char *suffix, savePath
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
// 1: null terminator
|
||||
// 16: room for filenum to ensure new filename
|
||||
// save_path_len + strlen(PATHSEP): the user preference save paths
|
||||
//const size_t len = p_namelen + strlen(suffix) + 1 + 16 + save_path_len + strlen(PATHSEP);
|
||||
const size_t len = FILE_PATH_SIZE * 2;
|
||||
const size_t len = FILE_PATH_SIZE;
|
||||
|
||||
char *fileName = (char *) calloc(len, sizeof(uint8_t));
|
||||
if (fileName == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user