From: Brian Inglis Date: Wed, 8 Mar 2017 21:51:39 +0000 (+0000) Subject: ports/winnt/instsrv/instsrv.c(addSourceToRegistry) prefix use of snprintf with _... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b58c6b390a8372c68009ca7a7e5c22dee7f12ff;p=thirdparty%2Fntp.git ports/winnt/instsrv/instsrv.c(addSourceToRegistry) prefix use of snprintf with _ required for VS < 2015 bk: 58c07cebrE11G_drZ6Rx-03gMsQowA --- diff --git a/ports/winnt/instsrv/instsrv.c b/ports/winnt/instsrv/instsrv.c index 3487c218e..4d92c9b9d 100644 --- a/ports/winnt/instsrv/instsrv.c +++ b/ports/winnt/instsrv/instsrv.c @@ -295,7 +295,7 @@ addSourceToRegistry( to the new subkey. */ - rc = snprintf(regarray, sizeof(regarray), "%s%s", + rc = _snprintf(regarray, sizeof(regarray), "%s%s", "SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\", pszAppname); if (rc < 0 || rc >= sizeof(regarray)) {