shithub: dumb

Download patch

ref: 425a8407fb003e1ca7d5f332cad9d7be90a6e2ee
parent: ad8a234f3c6c9b3e7a2d590c81f297bf20375f6d
author: Chris Moeller <[email protected]>
date: Sun Dec 23 08:40:35 EST 2012

Oops, forgot MSVC doesn't have snprintf

--- a/dumb/src/it/readpsm.c
+++ b/dumb/src/it/readpsm.c
@@ -27,6 +27,10 @@
 #define min(a, b) (((a) < (b)) ? (a) : (b))
 #endif
 
+#ifdef _MSC_VER
+#define snprintf sprintf_s
+#endif
+
 #define PSMV_OLD 940730
 #define PSMV_NEW 940902