Fixed a compiler warning.
authorRyan C. Gordon
Fri, 09 Sep 2011 04:48:45 -0400
changeset 5880db03ff7a7398
parent 5879 cdb371a9b4a1
child 5881 9d3baea5738a
Fixed a compiler warning.
src/audio/nas/SDL_nasaudio.c
     1.1 --- a/src/audio/nas/SDL_nasaudio.c	Fri Sep 09 04:17:47 2011 -0400
     1.2 +++ b/src/audio/nas/SDL_nasaudio.c	Fri Sep 09 04:48:45 2011 -0400
     1.3 @@ -108,8 +108,8 @@
     1.4          nas_handle = SDL_LoadObject(nas_library);
     1.5          if (nas_handle == NULL) {
     1.6              /* Copy error string so we can use it in a new SDL_SetError(). */
     1.7 -            char *origerr = SDL_GetError();
     1.8 -            size_t len = SDL_strlen(origerr) + 1;
     1.9 +            const char *origerr = SDL_GetError();
    1.10 +            const size_t len = SDL_strlen(origerr) + 1;
    1.11              char *err = (char *) alloca(len);
    1.12              SDL_strlcpy(err, origerr, len);
    1.13              retval = -1;