commit | 6f33890b09ed32e51e70d7d8fd5ebee1d5ab3001 | [log] [tgz] |
---|---|---|
author | Ozkan Sezer <sezeroz@gmail.com> | Thu May 10 09:02:39 2018 +0300 |
committer | Ozkan Sezer <sezeroz@gmail.com> | Thu May 10 09:02:39 2018 +0300 |
tree | 954cd1bd83646289b2bd14c6a282daea5377f783 | |
parent | 7a1c60fed4c1a80437fdc74153125f35f5d62b01 [diff] |
make sure SDL_vsnprintf() nul terminates if it is using _vsnprintf The change makes sure that SDL_vsnprintf() nul terminates if it is using _vsnprintf() for the job. I made this patch for Watcom, whose _vsnprintf() doesn't guarantee nul termination. The preprocessor check can be extended to windows in general too, if required. Closes bug #3769.