Just out of curiosity - on what OS/platform are you writing this non portable code ? 
Tried to reproduce your printf WTF but my valgrind doesn't complain - guess that your system sucks.

Tried to reproduce your printf WTF but my valgrind doesn't complain - guess that your system sucks.
it's /lib/tls/i686/cmov/libc-2.3.2.so - apparently a bit older than Kuci's
Comment