cURL / Mailing Lists / curl-library / Single Mail


large file changes on win32

From: Greg Hewgill <>
Date: Tue, 24 Feb 2004 16:13:36 -0600

I'm using curl-7.11.1-20040224 on win32, and am working on large file support. When using PUT on a file that is >2GB, the Content-Length is not formatted correctly (it's interpreted as a 32-bit signed number). I tracked this down to the mprintf.c module. Attached is a patch that fixes this. This may not be the best way to address this problem, since it uses the MSVC preprocessor variable "_MSC_VER" instead of using a HAVE_xxxx capability macro, but I'll let those more familiar with the code base decide on the best approach.

Greg Hewgill

Received on 2004-02-24