diff options
author | Dave Davenport <qball@blame.services> | 2022-04-05 00:06:53 +0200 |
---|---|---|
committer | Dave Davenport <qball@blame.services> | 2022-04-05 00:06:53 +0200 |
commit | 0f3a88fc2cc31a8a150d5ac1ab099e6631adcad6 (patch) | |
tree | f87370b25df3e58e8e5d0288b579ff24002485f1 | |
parent | 597157e0c9268fb2a8b39878d06a4e4d0f8751df (diff) |
[Theme] Change back to g_ascii_formatd
Use extra space and 0 initialized array. Don't use lf just f.
issue: #1611
-rw-r--r-- | source/theme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/theme.c b/source/theme.c index 7467baae..3a9a19b8 100644 --- a/source/theme.c +++ b/source/theme.c @@ -254,7 +254,7 @@ inline static void printf_double(double d) { char buf[G_ASCII_DTOSTR_BUF_SIZE + 1] = { 0, }; - g_ascii_dtostr(buf, G_ASCII_DTOSTR_BUF_SIZE, d); + g_ascii_formatd(buf, G_ASCII_DTOSTR_BUF_SIZE, "%.4f", d); fputs(buf, stdout); } |