summaryrefslogtreecommitdiff
path: root/riscos/download.c
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2008-08-05 01:23:04 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2008-08-05 01:23:04 +0000
commitc40fc354b3783502ce0c9be1629380acb10c0570 (patch)
tree27076646b9e6041439a5e082b1cb99d67045b0ac /riscos/download.c
parent039362166c2d31dd23931332b6af94bf274d2635 (diff)
downloadnetsurf-c40fc354b3783502ce0c9be1629380acb10c0570.tar.gz
netsurf-c40fc354b3783502ce0c9be1629380acb10c0570.tar.bz2
- Teached ro_gui_set_icon_string() and ro_gui_get_icon_string() about the difference between direct and indirect icons.
- ro_gui_get_icon_string(): - Constify return value of ro_gui_get_icon_string() as you really shouldn't change its contents via this pointer. - Enfore NUL string termination as return value (instead of other control char termination) - Merged ro_gui_set_icon_string_le() into ro_gui_set_icon_string() by adding ro_gui_set_icon_string() and extra to_utf8 parameter. - ro_gui_strncmp(): added svn path=/trunk/netsurf/; revision=4907
Diffstat (limited to 'riscos/download.c')
-rw-r--r--riscos/download.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/riscos/download.c b/riscos/download.c
index d8d86b75f..b75fb24b3 100644
--- a/riscos/download.c
+++ b/riscos/download.c
@@ -814,9 +814,9 @@ bool ro_gui_download_keypress(wimp_key *key)
return true;
case wimp_KEY_RETURN: {
- char *name = ro_gui_get_icon_string(dw->window, ICON_DOWNLOAD_PATH);
- if (!strrchr(name, '.'))
- {
+ const char *name = ro_gui_get_icon_string(dw->window,
+ ICON_DOWNLOAD_PATH);
+ if (!strrchr(name, '.')) {
warn_user("NoPathError", NULL);
return true;
}