]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Sec 3384] NTP-01-009 NTP: Privileged execution of User Library code (Pentest report...
authorJuergen Perlinger <perlinger@ntp.org>
Wed, 8 Mar 2017 21:34:08 +0000 (22:34 +0100)
committerJuergen Perlinger <perlinger@ntp.org>
Wed, 8 Mar 2017 21:34:08 +0000 (22:34 +0100)
 - VS2008 compatibility restored

bk: 58c078d0O7bwfyKUsRb6VG36qCK53w

ports/winnt/instsrv/instsrv.c

index 3487c218ed60ded55a69b19388f324df9ce044be..7c41d046a61e2ee55e5ff0630397176ace341f4c 100644 (file)
 #include <windows.h>
 #include <stdio.h>
 
+#if _MSC_VER <= 1800
+#define snprintf _snprintf
+#endif
+
 #define PERR(api) printf("\n%s: Error %d from %s on line %d",  \
                          __FILE__, GetLastError(), api, __LINE__);