Red Hat Bugzilla – Bug 223363
libc sprintf produces incorrect output for %%E
Last modified: 2007-11-30 17:11:53 EST
Description of problem:
sprintf produces incorrect results with "%%E" format.
Version-Release number of selected component (if applicable):
Most up to date libc on fc6.
How reproducible: 100%
Steps to reproduce:
1) Compile the attached file via:
gcc -o sprintf-bug sprintf-bug.c
Is this libc or gcc? I have not had much luck with libc's bugzilla but I'll try
Created attachment 145953 [details]
I plead temporary insanity. Please close as "INVALID" or similar.
It would be nice if gcc could produce the warning "invalid number of arguments to printf" but I can
understand why it does not.
Sorry for the noise.