summaryrefslogtreecommitdiffstats
path: root/source/theme.c
diff options
context:
space:
mode:
authorDave Davenport <qball@blame.services>2022-04-05 00:06:53 +0200
committerDave Davenport <qball@blame.services>2022-04-05 00:06:53 +0200
commit0f3a88fc2cc31a8a150d5ac1ab099e6631adcad6 (patch)
treef87370b25df3e58e8e5d0288b579ff24002485f1 /source/theme.c
parent597157e0c9268fb2a8b39878d06a4e4d0f8751df (diff)
[Theme] Change back to g_ascii_formatd
Use extra space and 0 initialized array. Don't use lf just f. issue: #1611
Diffstat (limited to 'source/theme.c')
-rw-r--r--source/theme.c2
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);
}