summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/rockbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/rockbox.c')
-rw-r--r--apps/plugins/puzzles/rockbox.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c
index ac6388bf4d..1aee42d080 100644
--- a/apps/plugins/puzzles/rockbox.c
+++ b/apps/plugins/puzzles/rockbox.c
@@ -1448,15 +1448,17 @@ const drawing_api rb_drawing = {
1448void fatal(const char *fmt, ...) 1448void fatal(const char *fmt, ...)
1449{ 1449{
1450 va_list ap; 1450 va_list ap;
1451 char buf[256];
1451 1452
1452 rb->splash(HZ, "FATAL"); 1453 rb->splash(HZ, "FATAL");
1453 1454
1454 va_start(ap, fmt); 1455 va_start(ap, fmt);
1455 char buf[80]; 1456 rb->vsnprintf(buf, sizeof(buf), fmt, ap);
1456 rb->vsnprintf(buf, 80, fmt, ap);
1457 rb->splash(HZ * 2, buf);
1458 va_end(ap); 1457 va_end(ap);
1459 1458
1459 LOGF("%s", buf);
1460 rb->splash(HZ * 2, buf);
1461
1460 if(rb->thread_self() == thread) 1462 if(rb->thread_self() == thread)
1461 rb->thread_exit(); 1463 rb->thread_exit();
1462 else 1464 else