mirror of https://github.com/encounter/SDL.git
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