mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
grabber: empty buffer after being read, to prevent old buffer to be returned after a command without output
This commit is contained in:
parent
0938f1d56b
commit
55cef35b1d
1 changed files with 2 additions and 0 deletions
|
@ -75,7 +75,9 @@ const char *pm3_name_get(pm3_device_t *dev) {
|
|||
|
||||
const char *pm3_grabbed_output_get(pm3_device_t *dev) {
|
||||
char *tmp = g_grabbed_output.ptr;
|
||||
tmp[g_grabbed_output.size] = 0;
|
||||
g_grabbed_output.idx = 0;
|
||||
g_grabbed_output.size = 0;
|
||||
return tmp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue