Use snprintf or _snprintf instead of the potentially dangerous sprintf
authorSven Panne <sven.panne@aedion.de>
Sat, 28 Feb 2009 13:09:22 +0000 (13:09 +0000)
committerSven Panne <sven.panne@aedion.de>
Sat, 28 Feb 2009 13:09:22 +0000 (13:09 +0000)
commit4f4c33c357f3dae74ac98fbdb450b3f624026049
tree6178fbcb436e56d80b216201a2f97a3cb3f8c68f
parent1e778f9ed7ff8009e4555ef4043509b0c9f01ebd
Use snprintf or _snprintf instead of the potentially dangerous sprintf
to avoid warnings.

NOTE: Due to excessive use of #ifdefs, the joystick code is on the
border of being unmaintainable! I could only check that it compiles
cleanly on my Linux box. Others should test this on their platforms
(Windows, Mac OS X, *BSD) to make sure that nothing has been broken.

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@784 7f0cb862-5218-0410-a997-914c9d46530a
src/freeglut_joystick.c