From 3f0c50e5a0eba982aca4ff377b1018018fb16b64 Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Sun, 1 Feb 2009 13:37:32 +0000 Subject: - C strings have always an implicit NUL character at the end, no need to specify an extra one. - riscos/configure/con_theme.c: removed spurious code line. svn path=/trunk/netsurf/; revision=6331 --- riscos/configure/con_theme.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'riscos/configure') diff --git a/riscos/configure/con_theme.c b/riscos/configure/con_theme.c index 003d67616..0aebd86c0 100644 --- a/riscos/configure/con_theme.c +++ b/riscos/configure/con_theme.c @@ -78,9 +78,9 @@ static wimp_window theme_pane_definition = { static wimp_w theme_pane; static struct theme_descriptor *theme_list = NULL; static struct toolbar_display *toolbars = NULL; -static char theme_radio_validation[] = "Sradiooff,radioon\0"; -static char theme_null_validation[] = "\0"; -static char theme_line_validation[] = "R2\0"; +static char theme_radio_validation[] = "Sradiooff,radioon"; +static char theme_null_validation[] = ""; +static char theme_line_validation[] = "R2"; static bool ro_gui_options_theme_ok(wimp_w w); static bool ro_gui_options_theme_click(wimp_pointer *pointer); @@ -358,7 +358,6 @@ void ro_gui_options_theme_load(void) new_icon.icon.data.indirected_text.validation = theme_line_validation; new_icon.icon.data.indirected_text.size = 1; - strlen(link->descriptor->filename) + 1; xwimp_create_icon(&new_icon, 0); } -- cgit v1.2.3