diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-10-30 09:35:16 +0000 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-02-11 12:33:44 +0000 |
commit | aaed5186fab6217994b72b078e3e7789be0df117 (patch) | |
tree | 6a51920eaea0271126b660cb1740d93c5fa1f9ee /win32/vs9 | |
parent | 925649e8c6ac8ce461fbf769dee0e2ce4d78e506 (diff) | |
download | libnice-aaed5186fab6217994b72b078e3e7789be0df117.tar.gz |
stun: Use sprintf() instead of snprintf() to support VS 2010
Visual Studio 2010 still doesn’t support C99, and snprintf() is a C99
function, so compilation fails with:
error: C3861: 'snprintf': identifier not found
Use sprintf() instead, which is C89 and thus supported. This does not
make the code unsafe, as the format specifier is constrained to two
characters (+ trailing nul), which are guaranteed to fit in the array
bounds.
Reported on the mailing list:
http://lists.freedesktop.org/archives/nice/2014-October/000978.html
Diffstat (limited to 'win32/vs9')
0 files changed, 0 insertions, 0 deletions