summaryrefslogtreecommitdiff
path: root/riscos/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/gui.c')
-rw-r--r--riscos/gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 7f50bb260..e255b4d81 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -1259,10 +1259,10 @@ void ro_gui_screen_size(int *width, int *height)
*
* \param page the page to open
*/
-void ro_gui_open_help_page(char *page)
+void ro_gui_open_help_page(const char *page)
{
char url[80];
- sprintf(url, "file:///%%3CNetSurf$Dir%%3E/Docs/%s_%s",
+ snprintf(url, sizeof url, "file:///%%3CNetSurf$Dir%%3E/Docs/%s_%s",
page, option_language);
browser_window_create(url, NULL);
}