as_string.cpp
c:\documents and settings\tony\desktop\jmud 2.0\source\angelscript\source\as_string.cpp(224) : warning C4996: '_vsnprintf' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdio.h(333) : see declaration of '_vsnprintf'
Message: 'This function or variable may be unsafe. Consider using vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\documents and settings\tony\desktop\jmud 2.0\source\angelscript\source\as_string.cpp(236) : warning C4996: '_vsnprintf' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdio.h(333) : see declaration of '_vsnprintf'
Message: 'This function or variable may be unsafe. Consider using vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
as_string_util.cpp
c:\documents and settings\tony\desktop\jmud 2.0\source\angelscript\source\as_string_util.cpp(53) : warning C4996: '_vsnprintf' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\stdio.h(339) : see declaration of '_vsnprintf'
Message: 'This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
Minor warnings with MSVC8.0
Verbatim.
What is this, three levels of deprecation now?
vsnprintf_s, like vsnprintf, is a macro around a function. vsnprintf_s takes an additional 'max count' parameter which MSDN describes as the maximum allowed to write. You should pass the size of the buffer instead of size-1 for the buffer size parameter, and then size-1 for the max count. Simple fix. :)
Yes, I'm aware of these. I just haven't taken the time to fix them yet. ;)
Thanks anyway.
Thanks anyway.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement