From a3e205bbd9cff0a189b3a5a03c676ace9c5ee8dd Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 1 Jul 2009 12:05:51 +0000 Subject: Constify ro_uri_launch() If the URL is too long to fit into a non-indirected ANT URLLoad message, then skip the ANT URLLoad broadcast and jump straight to using URI_Dispatch. We don't support indirected ANT URLLoad messages as their potential for memory leakage is too great. svn path=/trunk/netsurf/; revision=8233 --- riscos/url_protocol.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'riscos/url_protocol.c') diff --git a/riscos/url_protocol.c b/riscos/url_protocol.c index 5db46d8f0..8b06d6f75 100644 --- a/riscos/url_protocol.c +++ b/riscos/url_protocol.c @@ -131,8 +131,11 @@ void ro_url_broadcast(const char *url) os_error *error; int len = strlen(url) + 1; - if (236 < len) - len = 236; + /* If URL is too long, then forget ANT and try URI, instead */ + if (236 < len) { + ro_uri_launch(url); + return; + } message.size = ((20+len+3) & ~3); message.your_ref = 0; -- cgit v1.2.3