Don't overflow the stack

svn-id: r11408
This commit is contained in:
Chris Apers 2003-11-28 10:11:04 +00:00
parent 9da541f657
commit 7d5551e507

View File

@ -135,7 +135,12 @@ void SimonEngine::render_string(uint vga_sprite_id, uint color, uint width, uint
}
void SimonEngine::showMessageFormat(const char *s, ...) {
char buf[1024], *str;
#ifndef __PALM_OS__
char buf[1024];
#else
char buf[256];
#endif
char *str;
va_list va;
va_start(va, s);