advent: fix crash with long texts due to undersized buffers
authorAlan Cox <alan@linux.intel.com>
Thu, 17 Mar 2016 12:47:43 +0000 (12:47 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 17 Mar 2016 12:47:43 +0000 (12:47 +0000)
Applications/cave/database.c

index bbb8551..e095830 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "advent.h"
 static void DisplayText(uint16_t * tab);
-static char db_buf[257];
+static char db_buf[513];
 static struct trav db_trav[16];        /* Trav for last location fetched */
 static uint8_t db_ntrav;
 static int db_lastloc;