mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-23 22:55:37 -07:00
Merge branch 'master' of https://github.com/RfidResearchGroup/proxmark3
This commit is contained in:
commit
4d34c8d4d5
1 changed files with 2 additions and 1 deletions
|
@ -4135,7 +4135,8 @@ int arg_parse(int argc, char * *argv, void * *argtable) {
|
|||
*/
|
||||
static void arg_cat(char **pdest, const char *src, size_t *pndest) {
|
||||
char *dest = *pdest;
|
||||
char *end = dest + *pndest;
|
||||
// PM3 fix: leave room for null terminate char
|
||||
char *end = dest + *pndest - 1;
|
||||
|
||||
/*locate null terminator of dest string */
|
||||
while (dest < end && *dest != 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue