Skip to content
Browse files

Debug function returned address of nonstatic internal var.

  • Loading branch information...
1 parent 7b0e2a2 commit 2c3ba068c5e11c15d898bbce8de2fb7888e769b6 @DusteDdk committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 pixel.c
View
2 pixel.c
@@ -147,7 +147,7 @@ void debugPrintSurfaceInfo(SDL_Surface* s)
char* debugGetFlagInfo( Uint32 flags )
{
- char flagsStr[4096];
+ static char flagsStr[4096];
flagsStr[0]='\0';
if(flags & SDL_ANYFORMAT) sprintf(flagsStr, "%s", "SDL_ANYFORMAT,");

0 comments on commit 2c3ba06

Please sign in to comment.
Something went wrong with that request. Please try again.