diff options
author | Willem Jan Palenstijn | 2012-08-28 22:47:10 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2012-08-28 22:50:32 +0200 |
commit | cdeecf1521e95a8ad250bc18a398b32fd2886c36 (patch) | |
tree | 303b623af1b4901204ebbf20d59aa76f2911cedc /engines | |
parent | 142ac7600f61e193612ec81c7fd7070ec2ca5c0e (diff) | |
download | scummvm-rg350-cdeecf1521e95a8ad250bc18a398b32fd2886c36.tar.gz scummvm-rg350-cdeecf1521e95a8ad250bc18a398b32fd2886c36.tar.bz2 scummvm-rg350-cdeecf1521e95a8ad250bc18a398b32fd2886c36.zip |
TONY: Replace overlapping memcpy with memmove
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tony/mpal/expr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tony/mpal/expr.cpp b/engines/tony/mpal/expr.cpp index eb6b485ef6..772d3da075 100644 --- a/engines/tony/mpal/expr.cpp +++ b/engines/tony/mpal/expr.cpp @@ -191,7 +191,7 @@ static void solve(LPEXPRESSION one, int num) { two = one + 1; if ((two->symbol == 0) || (one->symbol & 0xF0) <= (two->symbol & 0xF0)) { two->val.num = Compute(one->val.num, two->val.num, one->symbol); - memcpy(one, two, (num - 1) * sizeof(EXPRESSION)); + memmove(one, two, (num - 1) * sizeof(EXPRESSION)); --num; } else { j = 1; @@ -203,7 +203,7 @@ static void solve(LPEXPRESSION one, int num) { } three->val.num = Compute(two->val.num, three->val.num, two->symbol); - memcpy(two, three, (num - j - 1) * sizeof(EXPRESSION)); + memmove(two, three, (num - j - 1) * sizeof(EXPRESSION)); --num; } } |