[vlc-commits] Win32: use _snwprintf instead of swprintf

Jean-Baptiste Kempf git at videolan.org
Tue Jan 15 15:09:41 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jan 15 16:09:04 2013 +0100| [8d52e7baff7a2c347183a81de048f5797bfec092] | committer: Jean-Baptiste Kempf

Win32: use _snwprintf instead of swprintf

swprintf is not the standard function you are looking for

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8d52e7baff7a2c347183a81de048f5797bfec092
---

 include/vlc_common.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index 6a3dd9b..6bdbfc7 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -77,6 +77,7 @@
  #define PRIx64 "llx"
  #define snprintf __mingw_snprintf
  #define vsnprintf __mingw_vsnprintf
+ #define swprintf _snwprintf
 #endif
 
 /* Function attributes for compiler warnings */



More information about the vlc-commits mailing list