mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-10 00:02:39 +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);
|
r_cons_fgets (buf + 3, sizeof (buf) - 3, 0, NULL);
|
||||||
memcpy (buf, "wx ", 3);
|
memcpy (buf, "wx ", 3);
|
||||||
if (buf[3]) {
|
if (buf[3]) {
|
||||||
|
buf[sizeof (buf) - 1] = 0;
|
||||||
char *res = rtrcmd (T, buf);
|
char *res = rtrcmd (T, buf);
|
||||||
if (res) {
|
if (res) {
|
||||||
r_cons_println (res);
|
r_cons_println (res);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user