Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merged r3047:3048 from branches/SDL-1.2: SDL_revcpy() off-by-one fix.
  • Loading branch information
icculus committed Jun 4, 2007
1 parent 8d84245 commit cc8023b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stdlib/SDL_string.c
Expand Up @@ -298,8 +298,8 @@ 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 cc8023b

Please sign in to comment.