From ae7d46abf3d64f0f413277081f63ea52cf4ae40c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 13 Apr 2017 13:30:20 +0000 Subject: Fix trailing nulls in s6-svstat's output --- src/supervision/s6-svstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/supervision/s6-svstat.c b/src/supervision/s6-svstat.c index a30d685..237b51e 100644 --- a/src/supervision/s6-svstat.c +++ b/src/supervision/s6-svstat.c @@ -217,9 +217,9 @@ static void legacy (s6_svstatus_t *st, int flagnum) if (isup && status.flagpaused) buffer_putnoflush(buffer_1small, ", paused", 8) ; if (!isup && status.flagwantup) - buffer_putnoflush(buffer_1small, ", want up", 10) ; + buffer_putnoflush(buffer_1small, ", want up", 9) ; if (isup && !status.flagwantup) - buffer_putnoflush(buffer_1small, ", want down", 12) ; + buffer_putnoflush(buffer_1small, ", want down", 11) ; if (status.flagready) { -- cgit v1.2.3