Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed a compiler warning.

  • Loading branch information
icculus committed Sep 9, 2011
1 parent ac865ca commit f5c451b865a25344bd14ed68e7728e3ca11a3f17
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/audio/nas/SDL_nasaudio.c
@@ -108,8 +108,8 @@ LoadNASLibrary(void)
nas_handle = SDL_LoadObject(nas_library);
if (nas_handle == NULL) {
/* Copy error string so we can use it in a new SDL_SetError(). */
char *origerr = SDL_GetError();
size_t len = SDL_strlen(origerr) + 1;
const char *origerr = SDL_GetError();
const size_t len = SDL_strlen(origerr) + 1;
char *err = (char *) alloca(len);
SDL_strlcpy(err, origerr, len);
retval = -1;

0 comments on commit f5c451b

Please sign in to comment.