summaryrefslogtreecommitdiff
path: root/src/supervision
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-04-13 13:30:20 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-04-13 13:30:20 +0000
commitae7d46abf3d64f0f413277081f63ea52cf4ae40c (patch)
treeae625dacbf70b6aa899453021f052d2c92a281e7 /src/supervision
parent7af744c799e64b43cb5b8aace32c4df3cacce3bb (diff)
downloads6-ae7d46abf3d64f0f413277081f63ea52cf4ae40c.tar.xz
Fix trailing nulls in s6-svstat's output
Diffstat (limited to 'src/supervision')
-rw-r--r--src/supervision/s6-svstat.c4
1 files 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)
{