rshin / tcmportmapper

Automatically exported from code.google.com/p/tcmportmapper
0 stars 0 forks source link

warning: %d expects type int, but argument has type size_t #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
While passing Clang's static analyzer on Colloquy, it output the following
warning for the file `miniupnpc.c`.

Indeed, in that file a `size_t` value (the result of an strlen) is
formatted as `%d`. While the lines involved are only active in DEBUG and
it's very unlikely they'd ever go past 2GB, given `size_t` has its own
format string `%zu` there is no reason not to fix it.

Original issue reported on code.google.com by maskl...@gmail.com on 30 Sep 2009 at 7:38

GoogleCodeExporter commented 9 years ago
Here's the patch to fix the issue

Original comment by maskl...@gmail.com on 30 Sep 2009 at 7:39

Attachments: