From: Juergen Perlinger Date: Wed, 8 Mar 2017 21:34:08 +0000 (+0100) Subject: [Sec 3384] NTP-01-009 NTP: Privileged execution of User Library code (Pentest report... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=602c437ce7de4f556431fe0f86a423a5a0782c27;p=thirdparty%2Fntp.git [Sec 3384] NTP-01-009 NTP: Privileged execution of User Library code (Pentest report 01.2017) - VS2008 compatibility restored bk: 58c078d0O7bwfyKUsRb6VG36qCK53w --- diff --git a/ports/winnt/instsrv/instsrv.c b/ports/winnt/instsrv/instsrv.c index 3487c218e..7c41d046a 100644 --- a/ports/winnt/instsrv/instsrv.c +++ b/ports/winnt/instsrv/instsrv.c @@ -10,6 +10,10 @@ #include #include +#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__);