mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
SDL_vsnprintf: when '.' is specified, take precision as 0 if it is < 0.
This commit is contained in:
parent
69ab8541a9
commit
8743e9759e
@ -1618,6 +1618,9 @@ SDL_vsnprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, const char *fmt,
|
|||||||
} else {
|
} else {
|
||||||
info.precision = 0;
|
info.precision = 0;
|
||||||
}
|
}
|
||||||
|
if (info.precision < 0) {
|
||||||
|
info.precision = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while (!done) {
|
while (!done) {
|
||||||
|
Loading…
Reference in New Issue
Block a user