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
This commit is contained in:
Ryan C. Gordon 2007-06-04 11:43:47 +00:00
parent 6b5b916b0d
commit 2d2ab89a1d

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