bug-commoncpp
[Top][All Lists]
Advanced

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

URLStream problem


From: Nic Strong
Subject: URLStream problem
Date: 28 Oct 2001 17:51:19 +0000

I had trouble getting the URLStream to recognise a specfic port in a url
e.g. http://localhost:2134.

Adding:
        strncpy( urlbuf, url, 1024 );

on entry to the if statement at the top of Get() in URLStream seems to
fix this.

Diffs are:

*** url.cpp     Thu Oct  4 19:28:22 2001
--- ../../CommonC++-1.6.3.mods/posix/url.cpp   Sun Oct 28 17:40:53 2001
***************
*** 378,383 ****
--- 378,384 ----
 
        if(!proxyPort)
        {
+               strncpy(urlbuf, url, 1024);
                ep = strchr(urlbuf, ':');
                if(ep)
                {


Cheers,
Nic



reply via email to

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