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