From: Juergen Perlinger Date: Mon, 3 Aug 2015 06:16:57 +0000 (+0200) Subject: [Bug 2889] ntp-dev-4.3.67 does not build on Windows X-Git-Tag: NTP_4_3_70~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da155a5889efb1735f2dad0a6f4a372052460b9c;p=thirdparty%2Fntp.git [Bug 2889] ntp-dev-4.3.67 does not build on Windows bk: 55bf0759YOunOaWN4PAK2F9sviGqyA --- diff --git a/ChangeLog b/ChangeLog index 8393ccf66..aa4ef6999 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,7 @@ be configured for the distribution targets. Harlan Stenn. * [Bug 2883] ntpd crashes on exit with empty driftfile. Miroslav Lichvar. * [Bug 2886] Mis-spelling: "outlyer" should be "outlier". dave@horsfall.org +* [Bug 2889] ntp-dev-4.3.67 does not build on Windows. perlinger@ntp.org * [Bug 2890] Ignore ENOBUFS on routing netlink socket. Konstantin Khlebnikov. * libntp/emalloc.c: Remove explicit include of stdint.h. Harlan Stenn. * Put Unity CPPFLAGS items in unity_config.h. Harlan Stenn. diff --git a/libntp/msyslog.c b/libntp/msyslog.c index a2068255b..46bda059a 100644 --- a/libntp/msyslog.c +++ b/libntp/msyslog.c @@ -371,7 +371,7 @@ init_logging( ) { static int was_daemon; - const char * cp; + char * cp; const char * pname; /* @@ -402,7 +402,7 @@ init_logging( #ifdef SYS_WINNT /* strip ".exe" */ cp = strrchr(progname, '.'); if (NULL != cp && !strcasecmp(cp, ".exe")) - progname[cp - progname] = '\0'; + *cp = '\0'; #endif #if !defined(VMS)