printf: make sure %x are treated unsigned
authorDaniel Stenberg <daniel@haxx.se>
Tue, 25 Jun 2013 07:52:06 +0000 (09:52 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 25 Jun 2013 07:55:49 +0000 (09:55 +0200)
commitcb1aa8b0e32068ec4bbbc42d41267420b46a36e7
tree932c53ecd4bd45976c38e6665e018f7ae3900e67
parentd3d5c4a40e962b37ebee5e01884748e024b66e7b
printf: make sure %x are treated unsigned

When using %x, the number must be treated as unsigned as otherwise it
would get sign-extended on for example 64bit machines and do wrong
output. This problem showed when doing printf("%08x", 0xffeeddcc) on a
64bit host.
lib/mprintf.c