Skip to content

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 c009f22 commit a6ae359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/nas/SDL_nasaudio.c
Original file line number Diff line number Diff line change
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 a6ae359

Please sign in to comment.