From 36541dcea239d3bc2567eb67e29ba48b461114c8 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 24 Aug 2015 13:51:07 +0000 Subject: String termination bugfix in s6-rc-fdholder-filler --- src/s6-rc/s6-rc-fdholder-filler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s6-rc/s6-rc-fdholder-filler.c b/src/s6-rc/s6-rc-fdholder-filler.c index 06afdee..03eeb31 100644 --- a/src/s6-rc/s6-rc-fdholder-filler.c +++ b/src/s6-rc/s6-rc-fdholder-filler.c @@ -66,7 +66,7 @@ int main (int argc, char const *const *argv) dump[(i<<1)+1].fd = p[1] ; offset.nano = 1 ; tain_add(&dump[(i<<1)+1].limit, &dump[i<<1].limit, &offset) ; - byte_copy(dump[(i<<1)+1].id, 12 + len, dump[i<<1].id) ; + byte_copy(dump[(i<<1)+1].id, 13 + len, dump[i<<1].id) ; dump[(i<<1)+1].id[10] = 'w' ; } if (!s6_fdholder_setdump_g(&a, dump, n << 1, &deadline)) -- cgit v1.2.3