Merge pull request #152 from Fl0-0/Fix_gcc_warnings

Fix sizes for GCC 8.2 string truncation warnings
This commit is contained in:
Iceman 2019-04-09 10:02:41 +02:00 committed by GitHub
commit bf8745e668
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -781,7 +781,7 @@ int CmdHF15Restore(const char *Cmd) {
char buff[255] = {0x00};
size_t blocksize = 4;
uint8_t cmdp = 0;
char newCmdPrefix[255] = {0x00}, tmpCmd[255] = {0x00};
char newCmdPrefix[FILE_PATH_SIZE + 1] = {0x00}, tmpCmd[FILE_PATH_SIZE + 262] = {0x00};
char param[FILE_PATH_SIZE] = "";
char hex[255] = "";
uint8_t retries = 3, tried = 0, i = 0;