SDL_vsnprintf: when '.' is specified, take precision as 0 if it is < 0.

This commit is contained in:
Ozkan Sezer 2018-09-26 17:11:40 +03:00
parent 69ab8541a9
commit 8743e9759e
1 changed files with 3 additions and 0 deletions

View File

@ -1618,6 +1618,9 @@ SDL_vsnprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, const char *fmt,
} else {
info.precision = 0;
}
if (info.precision < 0) {
info.precision = 0;
}
}
while (!done) {