diff options
author | John Tytgat <joty@netsurf-browser.org> | 2009-02-01 13:37:32 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2009-02-01 13:37:32 +0000 |
commit | 3f0c50e5a0eba982aca4ff377b1018018fb16b64 (patch) | |
tree | 295e998f83525c84c02f6b54496fe87670b4834b /riscos/configure | |
parent | e8399d8a76821984e1159dc27368202e96799c4b (diff) | |
download | netsurf-3f0c50e5a0eba982aca4ff377b1018018fb16b64.tar.gz netsurf-3f0c50e5a0eba982aca4ff377b1018018fb16b64.tar.bz2 |
- 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
Diffstat (limited to 'riscos/configure')
-rw-r--r-- | riscos/configure/con_theme.c | 7 |
1 files changed, 3 insertions, 4 deletions
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); } |