diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-12-13 06:02:04 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-12-13 06:02:04 +0000 |
commit | 6a6f83a50d7ad0b1f0244824b57100719c8aa96e (patch) | |
tree | b8e96bfcfb80d5ee1134c1c45f816502d9de65dc /src/conn-tools/s6-tcpserver-access.c | |
parent | 9f697d6c1de2979cc5e0f3689d10086ceac8a672 (diff) | |
download | s6-networking-6a6f83a50d7ad0b1f0244824b57100719c8aa96e.tar.xz |
No duplicate : in s6-tcpserver-access' progname
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/conn-tools/s6-tcpserver-access.c')
-rw-r--r-- | src/conn-tools/s6-tcpserver-access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn-tools/s6-tcpserver-access.c b/src/conn-tools/s6-tcpserver-access.c index bfff4ee..0bb1764 100644 --- a/src/conn-tools/s6-tcpserver-access.c +++ b/src/conn-tools/s6-tcpserver-access.c @@ -81,7 +81,7 @@ int main (int argc, char const *const *argv) flagident = 0, flagparanoid = 0, e = 0 ; uint16_t remoteport, localport ; char progbuf[sizeof(PROGNAME) + sizeof(": pid ") + PID_FMT] = PROGNAME ": pid " ; - memcpy(progbuf + sizeof(PROGNAME ": pid ") - 1 + pid_fmt(progbuf + sizeof(PROGNAME ": pid ") - 1, getpid()), ": ", 3) ; + progbuf[sizeof(PROGNAME ": pid ") - 1 + pid_fmt(progbuf + sizeof(PROGNAME ": pid ") - 1, getpid())] = 0 ; PROG = PROGNAME ; { unsigned int timeout = 0 ; |