Fixed a compiler warning.
This commit is contained in:
parent
484c18aa15
commit
f77b7f703a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue