mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
reduce size since this wasnt the root cause
This commit is contained in:
parent
dd3e1d3730
commit
46fc20165b
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue