Mercurial > sdl-ios-xcode
diff src/SDL_error.c @ 4867:ba7492f9e2b8
While you can actually write to the error buffer, conceptually it's read-only.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 29 Aug 2010 12:00:09 -0700 |
parents | 3b5f4b3a69e1 |
children | be4ba07d9867 |
line wrap: on
line diff
--- a/src/SDL_error.c Sat Aug 28 22:56:52 2010 -0700 +++ b/src/SDL_error.c Sun Aug 29 12:00:09 2010 -0700 @@ -198,12 +198,12 @@ } /* Available for backwards compatibility */ -char * +const char * SDL_GetError(void) { static char errmsg[SDL_ERRBUFIZE]; - return ((char *) SDL_GetErrorMsg(errmsg, SDL_ERRBUFIZE)); + return SDL_GetErrorMsg(errmsg, SDL_ERRBUFIZE); } void