Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 Minor format string problem

open
nobody
None
5
2011-03-15
2011-03-15
Jerry James
No

One format string in MapIO.c calls its argument "%u", but passes a size_t. On 64-bit platforms, a size_t can be 64 bits, but the format specifier says to look at only 32 bits of the argument. On a big-endian platform, this means that "0" will always be printed. The attached patch adds the "z" modifier to tell printf the correct size.

Discussion

  • Jerry James
    Jerry James
    2011-03-15

    Fix a format specifier

     
    Attachments