cURL / Mailing Lists / curl-library / Single Mail


Re: Building Libcurl with DMC

From: Daniel Stenberg <>
Date: Thu, 19 Feb 2004 09:04:32 +0100 (CET)

On Wed, 18 Feb 2004, wrote:

> Its been fixed with the latest release, I use the same script to generate
> the D wrappers so its not a problem really.

Still, it proves that you're using a C compiler that has flaws in very "basic"
areas. How can you then trust it to work properly in way more complicated
aspects like the rest of the code?

I won't tell you to stop trying, indeed not, but it will of course make your
task a bit more troublesome than if you'd went with a proven working compiler.
Such as mingw or Borland (both being available for no money).

> Its failing in url.c , line 2114
> if((1 > sscanf(data->change.url, "%512[^\n/?]%[^\n]",
> conn->gname, conn->path)) )

[from your second mail]

> data->change.url :
> conn->gname : (blank , but not null )
> conn->path : /

I would say this indicates another problem: your sscanf() function doesn't
work like it should!

That sscanf()-line should be able to parse "" just fine by adding
the whole host name into the conn->gname array.

    Daniel Stenberg -- --
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-02-19