Commit f77b7f70 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Fixed a compiler warning.

parent 484c18aa
...@@ -108,8 +108,8 @@ LoadNASLibrary(void) ...@@ -108,8 +108,8 @@ LoadNASLibrary(void)
nas_handle = SDL_LoadObject(nas_library); nas_handle = SDL_LoadObject(nas_library);
if (nas_handle == NULL) { if (nas_handle == NULL) {
/* Copy error string so we can use it in a new SDL_SetError(). */ /* Copy error string so we can use it in a new SDL_SetError(). */
char *origerr = SDL_GetError(); const char *origerr = SDL_GetError();
size_t len = SDL_strlen(origerr) + 1; const size_t len = SDL_strlen(origerr) + 1;
char *err = (char *) alloca(len); char *err = (char *) alloca(len);
SDL_strlcpy(err, origerr, len); SDL_strlcpy(err, origerr, len);
retval = -1; retval = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment