mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-02-24 15:44:47 +08:00
strip trailing space in a more strictly correct place
This commit is contained in:
parent
9cb00f305c
commit
23e5d20eed
1 changed files with 2 additions and 2 deletions
|
@ -64,9 +64,9 @@ static void *main_loop(void *targ)
|
|||
while(1) {
|
||||
cmd = readline(PROXPROMPT);
|
||||
if (cmd) {
|
||||
while(cmd[strlen(cmd) - 1] == ' ')
|
||||
cmd[strlen(cmd) - 1] = 0x00;
|
||||
if (cmd[0] != 0x00) {
|
||||
while(cmd[strlen(cmd) - 1] == ' ')
|
||||
cmd[strlen(cmd) - 1]= 0x00;
|
||||
CommandReceived(cmd);
|
||||
add_history(cmd);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue