mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-04 19:47:31 +00:00
fix oob str.c
This commit is contained in:
parent
f40bc158f4
commit
aa5124905d
@ -364,7 +364,7 @@ R_API int r_str_word_set0(char *str) {
|
||||
}
|
||||
for (i = 0; str[i] && str[i+1]; i++) {
|
||||
if (i > 0 && str[i-1] == ' ' && str[i] == ' ') {
|
||||
int len = strlen (str + i) + 1;
|
||||
int len = strlen (str + i);
|
||||
memmove (str + i, str + i + 1, len);
|
||||
i--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user