Skip to content

Commit

Permalink
C fallback for SDL_revcpy() was off by one. Thanks to Emmanuel Jeande…
Browse files Browse the repository at this point in the history
…l for

 the catch.

  Fixes Bugzilla #424.
  • Loading branch information
icculus committed Jun 4, 2007
1 parent 6f6813b commit ff40dbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stdlib/SDL_string.c
Expand Up @@ -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--;
}
Expand Down

0 comments on commit ff40dbf

Please sign in to comment.