Merge pull request #1715 from davidhozic/feature/1714

Bug Fix #1714
This commit is contained in:
Sergey Lyubka 2022-09-07 15:03:51 +01:00 committed by GitHub
commit 63e0041644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -673,7 +673,7 @@ size_t mg_vxprintf(void (*out)(char, void *), void *param, const char *fmt,
}
if (c == 'p') x = 1, is_long = 1;
if (c == 'd' || c == 'u' || c == 'x' || c == 'X' || c == 'p' ||
c == 'g') {
c == 'g' || c == 'f') {
bool s = (c == 'd'), h = (c == 'x' || c == 'X' || c == 'p');
char tmp[40];
size_t xl = x ? 2 : 0;