Commit 2d2ab89a authored by Ryan C. Gordon's avatar Ryan C. Gordon

C fallback for SDL_revcpy() was off by one. Thanks to Emmanuel Jeandel for

 the catch.

  Fixes Bugzilla #424.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402333
parent 6b5b916b
......@@ -289,8 +289,8 @@ void *SDL_revcpy(void *dst, const void *src, size_t len)
{
char *srcp = (char *)src;
char *dstp = (char *)dst;
srcp += len;
dstp += len;
srcp += len-1;
dstp += len-1;
while ( len-- ) {
*dstp-- = *srcp--;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment