From 518bfe1ed775ba4f386baa65917174b591eaac20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiesner=20Andr=C3=A1s?= Date: Tue, 4 Oct 2022 09:22:28 +0200 Subject: [PATCH] float fraction field printing fixed when zeros stay after separator --- embformat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/embformat.c b/embformat.c index bd37505..db640f0 100644 --- a/embformat.c +++ b/embformat.c @@ -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++; }