s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

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:
Msrc/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 @@ -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) {