diff options
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | src/daemontools-extras/s6-socklog.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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) ; } |