mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
fix: unshadow
This commit is contained in:
parent
339f499a25
commit
2f573ebfb3
2 changed files with 6 additions and 6 deletions
|
@ -150,11 +150,11 @@ int CmdWiegandDecode(const char *Cmd) {
|
|||
bool errors = false;
|
||||
char cmdp = 0;
|
||||
while (param_getchar(Cmd, cmdp) != 0x00 && !errors) {
|
||||
uint32_t strlen = param_getlength(Cmd, cmdp);
|
||||
strlen++; // null termin
|
||||
if (strlen > 2) {
|
||||
char *s = calloc(strlen, sizeof(uint8_t));
|
||||
param_getstr(Cmd, cmdp, s, strlen);
|
||||
uint32_t slen = param_getlength(Cmd, cmdp);
|
||||
slen++; // null termin
|
||||
if (slen > 2) {
|
||||
char *s = calloc(slen, sizeof(uint8_t));
|
||||
param_getstr(Cmd, cmdp, s, slen);
|
||||
hexstring_to_u96(&top, &mid, &bot, s);
|
||||
free(s);
|
||||
gothex = true;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
://-----------------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------------
|
||||
// Copyright (C) 2018 Merlok
|
||||
//
|
||||
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue