src/stdlib/SDL_string.c
changeset 2114 4794e6f90feb
parent 2092 8e761d6af583
child 2120 2c835d58faad
     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      }