[vlc-commits] WinVLC: use _snwprintf that is conforming to the standard

Jean-Baptiste Kempf git at videolan.org
Tue Jan 15 15:04:35 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | 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();



More information about the vlc-commits mailing list