[vlc-commits] WinVLC: use _snwprintf that is conforming to the standard
Jean-Baptiste Kempf
git at videolan.org
Tue Jan 15 15:07:48 CET 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jan 15 16:03:48 2013 +0100| [2fa9a4ae70393b8687c7a4dbad119fc90381a4c0] | committer: Jean-Baptiste Kempf
WinVLC: use _snwprintf that is conforming to the standard
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2fa9a4ae70393b8687c7a4dbad119fc90381a4c0
---
bin/winvlc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/winvlc.c b/bin/winvlc.c
index 583dbb2..59e64fa 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();
@@ -188,7 +188,7 @@ static void check_crashdump(void)
SYSTEMTIME now;
GetSystemTime(&now);
wchar_t remote_file[MAX_PATH];
- swprintf(remote_file,
+ _snwprintf(remote_file, MAX_PATH,
L"/crashes-win32/%04d%02d%02d%02d%02d%02d",
now.wYear, now.wMonth, now.wDay, now.wHour,
now.wMinute, now.wSecond );
More information about the vlc-commits
mailing list