cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Download a gif

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Fri, 15 Feb 2008 10:24:09 +0100

Michael Hecker wrote:
> But my char*, which normally contains the html code, contains only
> "GIF89addÄ".
> Isn't there binary data missing?

Since we haven't seen your code, we have no idea why you don't see it
all. My guess is that your code somehow expects only text data, and uses
string functions like strcpy(), and that the byte after the "GIF89addÄ"
is 0x00, thereby ending the string.

Linus
Received on 2008-02-15