Merged r3047:3048 from branches/SDL-1.2: SDL_revcpy() off-by-one fix.
authorRyan C. Gordon
Mon, 04 Jun 2007 11:45:10 +0000
changeset 21144794e6f90feb
parent 2113 6264c973814a
child 2115 502ae1f2a577
Merged r3047:3048 from branches/SDL-1.2: SDL_revcpy() off-by-one fix.
src/stdlib/SDL_string.c
     1.1 --- a/src/stdlib/SDL_string.c	Mon Jun 04 11:17:46 2007 +0000
     1.2 +++ b/src/stdlib/SDL_string.c	Mon Jun 04 11:45:10 2007 +0000
     1.3 @@ -298,8 +298,8 @@
     1.4  {
     1.5      char *srcp = (char *) src;
     1.6      char *dstp = (char *) dst;
     1.7 -    srcp += len;
     1.8 -    dstp += len;
     1.9 +    srcp += len-1;
    1.10 +    dstp += len-1;
    1.11      while (len--) {
    1.12          *dstp-- = *srcp--;
    1.13      }