Use vsnprintf instead of the potentially dangerous sprintf to avoid
authorSven Panne <sven.panne@aedion.de>
Sat, 28 Feb 2009 12:56:20 +0000 (12:56 +0000)
committerSven Panne <sven.panne@aedion.de>
Sat, 28 Feb 2009 12:56:20 +0000 (12:56 +0000)
commit1e778f9ed7ff8009e4555ef4043509b0c9f01ebd
tree501bd4501bab52d2c4ee68d5dad28cd4d5f05e3a
parent6a3b098cf4201b8360824a398388f50d474184b4
Use vsnprintf instead of the potentially dangerous sprintf to avoid
warnings. Using snprintf directly would be a little bit more tricky,
because once again Microsoft decided to avoid followind standards and
provide _snprintf instead. We could use this, too, but this would
require an additional autoconf check, which I'd like to avoid, if
possible.

Note: If VS *still* issues warnings, but this time about vsnprintf,
somebody should add some pragmas or whatever is needed to shut up that
warning, it would be silly.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@783 7f0cb862-5218-0410-a997-914c9d46530a
progs/demos/CallbackMaker/CallbackMaker.c
progs/demos/Lorenz/lorenz.c
progs/demos/shapes/shapes.c