From bf1f0954b9f6eec3e5ddee3530023deecbdb5130 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Thu, 24 Jun 2021 16:11:02 +0200 Subject: [PATCH] fixed: changed "%g" to "%f" when printing request/ezc times SetNonZeroDigitsAfterComma() incorrectly terminated the string if the format was "%g" (in the case where it was used as %e) --- winixd/core/misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winixd/core/misc.cpp b/winixd/core/misc.cpp index ad28e14..bf3a56a 100644 --- a/winixd/core/misc.cpp +++ b/winixd/core/misc.cpp @@ -1502,7 +1502,7 @@ void timespec_to_stream(timespec & val, pt::Stream & stream) char buf[50]; double val_double = timespec_to_double(val); - sprintf(buf, "%g", val_double); + sprintf(buf, "%f", val_double); SetNonZeroDigitsAfterComma(buf, 2); stream << buf;