This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/11344] Precision in printf family of routines


------- Additional Comments From drepper at redhat dot com  2010-04-05 20:06 -------
The code works as expected.  If you refer to the third format ill-behaving, this
is because there is a typo.  You missed the %.  If you add it the lines are


format=%10.0f ; size is 10 ; result is "         3"

and

parse_printf_format() on %10.0f : number of arguments is 1

respectively.

The format using a negative precision in the format string is invalid.  Any
reference to a negative precision only refers to the case when the precision
value comes from a separate parameter when using * as the precision.

That means there is no bug at all.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=11344

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]