src/SDL_log.c
changeset 7215 41e739a52f69
parent 7191 75360622e65f
child 7274 d9ef44d91559
equal deleted inserted replaced
7214:5b31583ecf9e 7215:41e739a52f69
   297     {
   297     {
   298         char *output;
   298         char *output;
   299         size_t length;
   299         size_t length;
   300         LPTSTR tstr;
   300         LPTSTR tstr;
   301 
   301 
   302         length = SDL_strlen(SDL_priority_prefixes[priority]) + 2 + SDL_strlen(message) + 1;
   302         length = SDL_strlen(SDL_priority_prefixes[priority]) + 2 + SDL_strlen(message) + 1 + 1;
   303         output = SDL_stack_alloc(char, length);
   303         output = SDL_stack_alloc(char, length);
   304         SDL_snprintf(output, length, "%s: %s", SDL_priority_prefixes[priority], message);
   304         SDL_snprintf(output, length, "%s: %s\n", SDL_priority_prefixes[priority], message);
   305         tstr = WIN_UTF8ToString(output);
   305         tstr = WIN_UTF8ToString(output);
   306         OutputDebugString(tstr);
   306         OutputDebugString(tstr);
   307         SDL_free(tstr);
   307         SDL_free(tstr);
   308         SDL_stack_free(output);
   308         SDL_stack_free(output);
   309     }
   309     }