From 361fcf507a3591c97890091f1e906a2ee9402462 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 2 Apr 2004 15:16:15 +0000 Subject: [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 --- riscos/uri.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'riscos/uri.c') 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 -- cgit v1.2.3