Added a FIXME.

This commit is contained in:
Ryan C. Gordon 2013-07-05 00:41:01 -04:00
parent 0ea9cabb50
commit 47a2869b0d

View file

@ -389,6 +389,7 @@ SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
unsigned int length; unsigned int length;
char* output; char* output;
FILE* pFile; 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; length = SDL_strlen(SDL_priority_prefixes[priority]) + 2 + SDL_strlen(message) + 1;
output = SDL_stack_alloc(char, length); output = SDL_stack_alloc(char, length);
SDL_snprintf(output, length, "%s: %s", SDL_priority_prefixes[priority], message); SDL_snprintf(output, length, "%s: %s", SDL_priority_prefixes[priority], message);