From 2e1169bddaa424ae5eef36e2ec12e2a3cb0adc68 Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Sun, 15 Apr 2007 02:59:34 +0000 Subject: * Make the WPS parser close open conditionals on new sublines and comments as well as new lines. * Make the displaying code check for invalid conditional constructs in order to avoid some rare cases of infinite looping. * Make the WPS parser check that it doesn't read more strings than it can. * Increase the string buffer size (from 512 to 1024, to accomodate the TextBox WPS which uses a lot of unicode characters). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13162 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/gui/gwps.h') diff --git a/apps/gui/gwps.h b/apps/gui/gwps.h index 7d20bc94cf..801a37902e 100644 --- a/apps/gui/gwps.h +++ b/apps/gui/gwps.h @@ -76,7 +76,7 @@ struct align_pos { #define WPS_MAX_SUBLINES (WPS_MAX_LINES*3) #define WPS_MAX_TOKENS 1024 #define WPS_MAX_STRINGS 128 -#define STRING_BUFFER_SIZE 512 +#define STRING_BUFFER_SIZE 1024 #define WPS_MAX_COND_LEVEL 10 #else -- cgit v1.2.3