vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Tue Jan 15 16:03:48 2013 +0100| [9203544bd4f48d172c36f2b2a1ac00d78bb5eed7] | committer: Jean-Baptiste Kempf
WinVLC: use _snwprintf that is conforming to the standard > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9203544bd4f48d172c36f2b2a1ac00d78bb5eed7 --- bin/winvlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/winvlc.c b/bin/winvlc.c index 583dbb2..e949150 100644 --- a/bin/winvlc.c +++ b/bin/winvlc.c @@ -132,7 +132,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, if( S_OK != SHGetFolderPathW( NULL, CSIDL_APPDATA | CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_CURRENT, path ) ) fprintf( stderr, "Can't open the vlc conf PATH\n" ); - swprintf( path+wcslen( path ), L"%s", L"\\vlc\\crashdump" ); + _snwprintf( path+wcslen( path ), MAX_PATH, L"%s", L"\\vlc\\crashdump" ); crashdump_path = &path[0]; check_crashdump(); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
