summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-08-09 01:43:49 +0000
committerLaurent Bercot <ska@appnovation.com>2024-08-09 01:43:49 +0000
commita08ca5f05b4a6bacc5b80b738d6a071593465a97 (patch)
tree4e009e170fdcb7683445bcc681a70e6cac78e6c2
parent1777259f308db7c48ac3ad24cd410007881e6fc8 (diff)
downloads6-a08ca5f05b4a6bacc5b80b738d6a071593465a97.tar.xz
formatting bugfix in s6-socklog
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--AUTHORS1
-rw-r--r--src/daemontools-extras/s6-socklog.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index b6beb09..47030d4 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -13,6 +13,7 @@ Contributors:
Shengjing Zhu <zhsj@debian.org>
Alexis <flexibeast@gmail.com>
Mira Ressel <aranea@aixah.de>
+ Jan Kämpe <jkampe68@gmail.com>
Thanks to:
Dan J. Bernstein <djb@cr.yp.to>
diff --git a/src/daemontools-extras/s6-socklog.c b/src/daemontools-extras/s6-socklog.c
index a1b2639..ffae406 100644
--- a/src/daemontools-extras/s6-socklog.c
+++ b/src/daemontools-extras/s6-socklog.c
@@ -194,7 +194,7 @@ int main (int argc, char const *const *argv)
char fmt[IP46_FMT + UINT16_FMT + 3] ;
size_t m = ip46_fmt(fmt, &ip) ;
fmt[m++] = '_' ;
- m += uint16_fmt(fmt, port) ;
+ m += uint16_fmt(fmt + m, port) ;
fmt[m++] = ':' ; fmt[m++] = ' ' ;
buffer_putnoflush(&b1, fmt, m) ;
}