mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04: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] = {
|
char buf[G_ASCII_DTOSTR_BUF_SIZE + 1] = {
|
||||||
0,
|
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);
|
fputs(buf, stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue