mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
[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:
parent
597157e0c9
commit
0f3a88fc2c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue