src/stdlib/SDL_string.c
changeset 1338 604d73db6802
parent 1336 3692456e7b0f
child 1341 d02b552e5304
     1.1 --- a/src/stdlib/SDL_string.c	Tue Feb 07 07:03:29 2006 +0000
     1.2 +++ b/src/stdlib/SDL_string.c	Tue Feb 07 09:29:18 2006 +0000
     1.3 @@ -343,7 +343,8 @@
     1.4  {
     1.5      char *bufp = string;
     1.6      while ( *bufp ) {
     1.7 -        *bufp++ = toupper(*bufp);
     1.8 +        *bufp = toupper(*bufp);
     1.9 +	++bufp;
    1.10      }
    1.11      return string;
    1.12  }
    1.13 @@ -354,7 +355,8 @@
    1.14  {
    1.15      char *bufp = string;
    1.16      while ( *bufp ) {
    1.17 -        *bufp++ = tolower(*bufp);
    1.18 +        *bufp = tolower(*bufp);
    1.19 +	++bufp;
    1.20      }
    1.21      return string;
    1.22  }
    1.23 @@ -367,6 +369,7 @@
    1.24          if ( *string == c ) {
    1.25              return (char *)string;
    1.26          }
    1.27 +	++string;
    1.28      }
    1.29      return NULL;
    1.30  }
    1.31 @@ -380,6 +383,7 @@
    1.32          if ( *bufp == c ) {
    1.33              return (char *)bufp;
    1.34          }
    1.35 +	--bufp;
    1.36      }
    1.37      return NULL;
    1.38  }
    1.39 @@ -393,6 +397,7 @@
    1.40          if ( SDL_strncmp(haystack, needle, length) == 0 ) {
    1.41              return (char *)haystack;
    1.42          }
    1.43 +	++haystack;
    1.44      }
    1.45      return NULL;
    1.46  }