[Theme] Change back to g_ascii_formatd

Use extra space and 0 initialized array. Don't use lf just f.

issue: #1611
This commit is contained in:
Dave Davenport 2022-04-05 00:06:53 +02:00
parent 597157e0c9
commit 0f3a88fc2c

View file

@ -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);
}