mirror of
https://github.com/yawut/SDL.git
synced 2026-10-22 14:50:57 -05:00
Small stack allocations fall back to malloc if they're unexpectedly large.
--HG-- branch : SDL-ryan-batching-renderer
This commit is contained in:
@@ -178,6 +178,7 @@ SDL_PromptAssertion(const SDL_assert_data *data, void *userdata)
|
||||
|
||||
(void) userdata; /* unused in default handler. */
|
||||
|
||||
/* !!! FIXME: why is this using SDL_stack_alloc and not just "char message[SDL_MAX_LOG_MESSAGE];" ? */
|
||||
message = SDL_stack_alloc(char, SDL_MAX_LOG_MESSAGE);
|
||||
if (!message) {
|
||||
/* Uh oh, we're in real trouble now... */
|
||||
|
||||
Reference in New Issue
Block a user