null terminate long string in rtrshell

This commit is contained in:
pancake 2021-04-21 13:11:41 +02:00
parent 267b04e04c
commit ea43bc4da9

View File

@ -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);