mirror of
https://github.com/yawut/SDL.git
synced 2026-09-03 14:45:13 -05:00
Added a FIXME.
This commit is contained in:
@@ -389,6 +389,7 @@ SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
|
||||
unsigned int length;
|
||||
char* output;
|
||||
FILE* pFile;
|
||||
/* !!! FIXME: is there any reason we didn't just use fprintf() here? */
|
||||
length = SDL_strlen(SDL_priority_prefixes[priority]) + 2 + SDL_strlen(message) + 1;
|
||||
output = SDL_stack_alloc(char, length);
|
||||
SDL_snprintf(output, length, "%s: %s", SDL_priority_prefixes[priority], message);
|
||||
|
||||
Reference in New Issue
Block a user