Added a FIXME.
This commit is contained in:
parent
0ea9cabb50
commit
47a2869b0d
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue