mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Account for octal marker in %#o format
This commit is contained in:
@ -196,6 +196,9 @@ LABEL (unsigned_number): /* Unsigned number of base BASE. */
|
||||
/* Account for 0X, 0x, 0B or 0b hex or binary marker. */
|
||||
width -= 2;
|
||||
|
||||
if (octal_marker)
|
||||
--width;
|
||||
|
||||
if (is_negative || showsign || space)
|
||||
--width;
|
||||
|
||||
@ -257,6 +260,9 @@ LABEL (unsigned_number): /* Unsigned number of base BASE. */
|
||||
width -= 2;
|
||||
}
|
||||
|
||||
if (octal_marker)
|
||||
--width;
|
||||
|
||||
width -= workend - string + prec;
|
||||
|
||||
Xprintf_buffer_pad (buf, L_('0'), prec);
|
||||
|
Reference in New Issue
Block a user