mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-03 10:51:01 +00:00
Ensure *ptr is not null byte
This commit is contained in:
parent
76d2650bd7
commit
06d7b89d18
@ -2061,7 +2061,7 @@ static int r_core_cmd_subst_i(RCore *core, char *cmd, char *colon) {
|
||||
/* bool conditions */
|
||||
ptr = (char *)r_str_lastbut (cmd, '&', quotestr);
|
||||
//ptr = strchr (cmd, '&');
|
||||
while (ptr && ptr[1] == '&') {
|
||||
while (ptr && *ptr && ptr[1] == '&') {
|
||||
*ptr = '\0';
|
||||
ret = r_cmd_call (core->rcmd, cmd);
|
||||
if (ret == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user