]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2889] ntp-dev-4.3.67 does not build on Windows
authorJuergen Perlinger <perlinger@ntp.org>
Mon, 3 Aug 2015 06:16:57 +0000 (08:16 +0200)
committerJuergen Perlinger <perlinger@ntp.org>
Mon, 3 Aug 2015 06:16:57 +0000 (08:16 +0200)
bk: 55bf0759YOunOaWN4PAK2F9sviGqyA

ChangeLog
libntp/msyslog.c

index 8393ccf66f6d863a35ae8ca7aaa4119d4825ba7d..aa4ef6999ec27622ba6d466ce8fc61b4c671e19a 100644 (file)
--- 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.
index a2068255b078c79b0e3e010032c088fff6ac7672..46bda059a030fbff2bbbdb3949606dc2621c7c82 100644 (file)
@@ -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)