mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-23 13:03:13 +00:00
Merge branch 'master' of https://github.com/RfidResearchGroup/proxmark3
This commit is contained in:
commit
4d34c8d4d5
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user