ufairiya / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Incorrect int64 string format specifier for MSVC 2008. #132

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start project in MSVC 2008.
2. Embed mongoose.c.
3. Add lines in mongoose.c to print out response headers, like in send_file
function.

What is the expected output? What do you see instead?
  I get a blank content-length header with no numeric value.  This causes
IE8 to not display any content.  The problem is the INT64_FMT format code.
 This formatting code is used throughout mongoose.c, so I expect this issue
to cause similar issues elsewhere.

What version of the product are you using? On what operating system?
Latest mongoose code from google code/subversion.  Windows Vista.

Please provide any additional information below.

The fix is to change the following line:

#define INT64_FMT       "I64"
  ... to ...
#define INT64_FMT       "I64d"

Original issue reported on code.google.com by csgrim...@gmail.com on 31 Mar 2010 at 4:20

GoogleCodeExporter commented 9 years ago
This is fixed, thanks.

Original comment by valenok on 21 Apr 2010 at 11:44