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

the catch.

  Fixes Bugzilla #424.

--HG--
branch : SDL-1.2
This commit is contained in:
Ryan C. Gordon
2007-06-04 11:43:47 +00:00
parent b75d969532
commit 09d57b679e

View File

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