Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added a FIXME.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 5, 2013
1 parent 38864a6 commit 04db109
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SDL_log.c
Expand Up @@ -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);
Expand Down

0 comments on commit 04db109

Please sign in to comment.