commit ae7d46abf3d64f0f413277081f63ea52cf4ae40c
parent 7af744c799e64b43cb5b8aace32c4df3cacce3bb
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Thu, 13 Apr 2017 13:30:20 +0000
Fix trailing nulls in s6-svstat's output
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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)
{