Displaying 1 result from an estimated 1 matches for "fl_zero".
Did you mean:
fd_zero
2018 Feb 08
2
[PATCH] syslinux/com32: Fix the printing of left zero padded hexadecimals with a leading '0x'.
...ts instead of
nchars.
Signed-off-by: Brett Walker <brett.walker at geometry.com.au>
---
--- ./syslinux/com32/lib/vsnprintf.c.orig
+++ ./syslinux/com32/lib/vsnprintf.c
@@ -126,7 +126,7 @@ format_int(char *q, size_t n, uintmax_t
/* Emit zero padding */
if ((flags & (FL_MINUS | FL_ZERO)) == FL_ZERO && width > ndigits) {
- while (width > nchars) {
+ while (width > ndigits) {
EMIT('0');
width--;
}