[Openal] Warning for non secure sprintf on VS2008!
Ümit Uzun
umituzun84 at gmail.com
Mon Jul 20 00:04:33 PDT 2009
Hi All,
New version of OpenAL11CoreSDK<http://connect.creativelabs.com/openal/Downloads/OpenAL11CoreSDK.zip>has
updated for secure file and console operations. But there is sprintf
which omitted about this changing I think. When I build new version
framework I have get warning about security on VS2008, I think sprintf
should be changed to sprintf_s as follows;
ALchar *ALFWaddMediaPath(const ALchar *filename)
{
// sprintf(fullPath, "%s%s", "..\\..\\Media\\", filename); Obsolete one
sprintf_s(fullPath, _MAX_PATH, "%s%s", "..\\..\\Media\\", filename);
return fullPath;
}
Regards.
Ümit Uzun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20090720/c7b5c81a/attachment.html
More information about the Openal
mailing list