include/win32/applicfg.h
changeset 687 e23df9586397
parent 684 3804ee7f9030
child 724 1445f32c4b2d
--- a/include/win32/applicfg.h	Tue Nov 08 08:59:05 2011 +0000
+++ b/include/win32/applicfg.h	Tue Nov 08 08:59:30 2011 +0000
@@ -102,7 +102,7 @@
 #ifdef UNICODE
 #define MSG(...) \
   do{wchar_t msg[300];\
-   swprintf(msg,L##__VA_ARGS__);\
+   swprintf(msg,sizeof(msg)/sizeof(msg[0]), L##__VA_ARGS__); \
    OutputDebugString(msg);}while(0)
 #else
 #define MSG(...) \