From 97d5fa20f28cda6d86511dd9e20be7d871eaf54f Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 23 Jul 2005 20:45:00 +0000 Subject: [project @ 2005-07-23 20:45:00 by bursa] Fix bug in ro_gui_theme_add_toolbar_icons(). svn path=/import/netsurf/; revision=1815 --- riscos/theme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscos/theme.c b/riscos/theme.c index aab6785d5..f71d6f3c1 100644 --- a/riscos/theme.c +++ b/riscos/theme.c @@ -2212,7 +2212,7 @@ void ro_gui_theme_add_toolbar_icons(struct toolbar *toolbar, } else { hex_no[0] = ident[index]; hex_no[1] = '\0'; - number = (int)strtol(&hex_no, (char **)NULL, 16); + number = strtol(hex_no, NULL, 16); for (icon = toolbar->icon; icon; icon = icon->next) if (icon->icon_number == number) { ro_gui_theme_delink_toolbar_icon( -- cgit v1.2.3