Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed a compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 9, 2011
1 parent ac865ca commit f5c451b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/nas/SDL_nasaudio.c
Expand Up @@ -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;
Expand Down

0 comments on commit f5c451b

Please sign in to comment.