changeset 3953:d3c1161652d5 SDL-1.2

C fallback for SDL_revcpy() was off by one. Thanks to Emmanuel Jeandel for the catch. Fixes Bugzilla #424.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 04 Jun 2007 11:43:47 +0000
parents e3c28caea46d
children 649fba69eccd
files src/stdlib/SDL_string.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/stdlib/SDL_string.c	Mon Jun 04 11:22:23 2007 +0000
+++ b/src/stdlib/SDL_string.c	Mon Jun 04 11:43:47 2007 +0000
@@ -289,8 +289,8 @@
 {
     char *srcp = (char *)src;
     char *dstp = (char *)dst;
-    srcp += len;
-    dstp += len;
+    srcp += len-1;
+    dstp += len-1;
     while ( len-- ) {
         *dstp-- = *srcp--;
     }