cURL / Mailing Lists / curl-library / Single Mail

curl-library

SCO sscanf issue

From: Renou, Stephane <Stephane.Renou_at_Genesys.com>
Date: Tue, 1 Jul 2003 10:32:06 +0200

I am trying to use libcurl on SCO openserver.
It compiled fine and when just using curl in command line mode I don't see
any issue.
When starting libcurl with simple.c the sample program, I have a connection
error. When debugging further, I found out that the following lines in
url.c(line 1946):

if (2 > sscanf(data->change.url,
                   "%64[^\n:]://%512[^\n/?]%[^\n]",
                   conn->protostr, conn->gname, conn->path)) {

is not filling correctly the address.
For example if I try with http://www.yahoo.com/ it fills correctly the
protostr but gname contain ww and path contains w.yahoo.com.

The same line is working fine with curl in command line mode.
I tried to change a lot of things without any positive result, I am now
wandering if this is a known issue?
Thanks
Stephane

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
Received on 2003-07-01