float fraction field printing fixed when zeros stay after separator

This commit is contained in:
Wiesner András 2022-10-04 09:22:28 +02:00
parent 15a6bc0ef7
commit 518bfe1ed7

View File

@ -293,6 +293,7 @@ static int pfn_double(va_list *va, FmtWord *fmt, char *outbuf, size_t free_space
*outbuf = '0';
outbuf++;
free_space--;
sum_copy_len++;
*outbuf = '\0';
leading_zeros_printed++;
}