gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] /srv/bzr/gnash/trunk r10677: apply patch for port in


From: strk
Subject: Re: [Gnash-commit] /srv/bzr/gnash/trunk r10677: apply patch for port in bug #25777.
Date: Mon, 9 Mar 2009 17:15:24 +0100

On Mon, Mar 09, 2009 at 09:55:50AM -0600, address@hidden wrote:

> === modified file 'libbase/URL.cpp'
> --- a/libbase/URL.cpp 2009-02-25 22:33:03 +0000
> +++ b/libbase/URL.cpp 2009-03-09 15:55:50 +0000
> @@ -291,8 +291,9 @@

>  
>               split_anchor_from_path();
>  
> -                // Extract the port number from the hostname, if any
> -                split_port_from_host();
> +        // Extract the port number from the hostname, if any
> +        split_port_from_host();
> +        _port= baseurl._port;

The split_port_from_host function will set _port internally,
from the _host private member.

A few lines above, you see

    // use protocol and host from baseurl
    _proto = baseurl._proto;
    _host = baseurl._host;

might be enough to add the _port=baseurl._port in there.

May I suggest to improve the URLTest.cpp file in testsuite/libbase
so to reproduce the bug before modifying the code ?

--strk;

 Free GIS & Flash consultant/developer      ()  ASCII Ribbon Campaign
 http://foo.keybit.net/~strk/services.html  /\  Keep it simple! 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]