mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-28 18:14:39 +08:00
Update cmddata.c
Fix issues when char cast to int8_t
This commit is contained in:
parent
46fe7d1292
commit
43907dc4ed
1 changed files with 4 additions and 2 deletions
|
@ -1949,7 +1949,7 @@ int CmdSave(const char *Cmd) {
|
|||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_lit0("w", "wave", "save as wave format (.wav)"),
|
||||
arg_strx0("f", "file", "<fn w/o ext>", "save file name"),
|
||||
arg_str1("f", "file", "<fn w/o ext>", "save file name"),
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
||||
|
@ -1958,7 +1958,9 @@ int CmdSave(const char *Cmd) {
|
|||
|
||||
int fnlen = 0;
|
||||
char filename[FILE_PATH_SIZE] = {0};
|
||||
CLIGetStrWithReturn(ctx, 2, (uint8_t *)filename, &fnlen);
|
||||
// CLIGetStrWithReturn(ctx, 2, (uint8_t *)filename, &fnlen);
|
||||
CLIParamStrToBuf(arg_get_str(ctx, 2), (uint8_t *)filename, FILE_PATH_SIZE, &fnlen);
|
||||
|
||||
CLIParserFree(ctx);
|
||||
|
||||
if (as_wave)
|
||||
|
|
Loading…
Reference in a new issue