# HG changeset patch # User Ryan C. Gordon # Date 1180957510 0 # Node ID 4794e6f90feba9e19f1809b80a43809153ff5d42 # Parent 6264c973814adc66a6db360e41969c2ce5acbd58 Merged r3047:3048 from branches/SDL-1.2: SDL_revcpy() off-by-one fix. diff -r 6264c973814a -r 4794e6f90feb src/stdlib/SDL_string.c --- a/src/stdlib/SDL_string.c Mon Jun 04 11:17:46 2007 +0000 +++ b/src/stdlib/SDL_string.c Mon Jun 04 11:45:10 2007 +0000 @@ -298,8 +298,8 @@ { char *srcp = (char *) src; char *dstp = (char *) dst; - srcp += len; - dstp += len; + srcp += len-1; + dstp += len-1; while (len--) { *dstp-- = *srcp--; }