mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-08 23:07:17 +00:00
null terminate long string in rtrshell
This commit is contained in:
parent
267b04e04c
commit
ea43bc4da9
@ -84,6 +84,7 @@ TODO:
|
||||
r_cons_fgets (buf + 3, sizeof (buf) - 3, 0, NULL);
|
||||
memcpy (buf, "wx ", 3);
|
||||
if (buf[3]) {
|
||||
buf[sizeof (buf) - 1] = 0;
|
||||
char *res = rtrcmd (T, buf);
|
||||
if (res) {
|
||||
r_cons_println (res);
|
||||
|
Loading…
x
Reference in New Issue
Block a user