fix oob str.c

This commit is contained in:
Álvaro Felipe Melchor 2016-10-25 13:33:29 +02:00
parent f40bc158f4
commit aa5124905d

View File

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