From 826a48d7371feb66081b5bb5d4b4519c8c45071f Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Mon, 3 Jul 2006 01:14:46 +0000 Subject: Fix 1496309. svn path=/trunk/netsurf/; revision=2700 --- riscos/theme_install.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/riscos/theme_install.c b/riscos/theme_install.c index ad4129d77..082860910 100644 --- a/riscos/theme_install.c +++ b/riscos/theme_install.c @@ -162,14 +162,19 @@ bool ro_gui_theme_install_apply(wimp_w w) char *theme_file; struct theme_descriptor *theme_install; os_error *error; + char *fix; assert(theme_install_content); - if (url_nice(theme_install_descriptor.name, &theme_file, true) != - URL_FUNC_OK) { - warn_user("ThemeInstallErr", 0); - return false; + /* convert spaces to hard spaces */ + theme_file = strdup(theme_install_descriptor.name); + if (!theme_file) { + LOG(("malloc failed")); + warn_user("NoMemory", 0); } + for (fix = theme_file; *fix != '\0'; *fix++) + if (*fix == ' ') + *fix = 160; /* hard space */ /* simply overwrite previous theme versions */ snprintf(theme_save, sizeof theme_save, "%s.%s", -- cgit v1.2.3