diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-04-02 15:16:15 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-04-02 15:16:15 +0000 |
commit | 361fcf507a3591c97890091f1e906a2ee9402462 (patch) | |
tree | 1b5c34c1da558c7c2791282b1aec509015e1a083 /riscos/uri.c | |
parent | 20454498ed6dd9cb3361fc8cece0319d789dd62e (diff) | |
download | netsurf-361fcf507a3591c97890091f1e906a2ee9402462.tar.gz netsurf-361fcf507a3591c97890091f1e906a2ee9402462.tar.bz2 |
[project @ 2004-04-02 15:16:15 by jmb]
Update url checking to use fetch_can_fetch
Fix non null-termination of strings in URL broadcast messages.
svn path=/import/netsurf/; revision=701
Diffstat (limited to 'riscos/uri.c')
-rw-r--r-- | riscos/uri.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/riscos/uri.c b/riscos/uri.c index 4e0205391..d513af8c6 100644 --- a/riscos/uri.c +++ b/riscos/uri.c @@ -74,13 +74,13 @@ bool ro_uri_launch(char *uri) { wimp_t handle_task; uri_dispatch_flags returned; os_error *e; - + e = xuri_dispatch(0, uri, task_handle, &returned, &handle_task, &uri_handle); - + if (e || returned & 1) { return false; } - + return true; } @@ -88,15 +88,15 @@ void ro_uri_bounce(uri_full_message_return_result *message) { char uri_buf[512]; os_error *e; - + if ((message->flags & 1) == 0) return; - + e = xuri_request_uri(0, uri_buf, sizeof uri_buf, message->handle, 0); - + if (e) return; - + ro_url_load(uri_buf); - + return; } #endif |