diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-12-18 15:32:27 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-12-18 15:32:27 (GMT) |
commit | b0bcf250999b2242019f137e38f52390a86e71cd (patch) | |
tree | f3436a3ddbbd4773005ecb891630a815ed001341 /src/common | |
parent | 6bde4016160057a22234d4ed698903dca52ce162 (diff) |
Shared all Dalvik operands between all their users.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/extstr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/extstr.c b/src/common/extstr.c index 2e69e3f..43a5ec9 100644 --- a/src/common/extstr.c +++ b/src/common/extstr.c @@ -196,13 +196,13 @@ char *strrpl(char *haystack, const char *needle1, const char *needle2) haystack = (char *)realloc(haystack, inlen * sizeof(char *)); found = haystack + index; - memmove(found + len1, found + len2, inlen - index + len2); + memmove(found + len2, found + len1, inlen + len2 - index); } else if (len2 < len1) { - memmove(found + len2, found + len1, inlen - index - len1); + memmove(found + len2, found + len1, inlen + len2 - index); inlen -= (len1 - len2); |