summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2006-07-03 01:14:46 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2006-07-03 01:14:46 +0000
commit826a48d7371feb66081b5bb5d4b4519c8c45071f (patch)
tree5f4c20815aa6f1552483508e956c44790c2f8ac3 /riscos
parent5eb703af733f49f743eabbea6783bc74de95ebc5 (diff)
downloadnetsurf-826a48d7371feb66081b5bb5d4b4519c8c45071f.tar.gz
netsurf-826a48d7371feb66081b5bb5d4b4519c8c45071f.tar.bz2
Fix 1496309.
svn path=/trunk/netsurf/; revision=2700
Diffstat (limited to 'riscos')
-rw-r--r--riscos/theme_install.c13
1 files 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",