summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-08-24 13:51:07 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-08-24 13:51:07 +0000
commit36541dcea239d3bc2567eb67e29ba48b461114c8 (patch)
tree48dfbdd6dae23d5187c67d4f88d2f35e1ab22652
parentf0e6bcf6c5aaab9be95a522932c38172d7f17c37 (diff)
downloads6-rc-36541dcea239d3bc2567eb67e29ba48b461114c8.tar.xz
String termination bugfix in s6-rc-fdholder-filler
-rw-r--r--src/s6-rc/s6-rc-fdholder-filler.c2
1 files changed, 1 insertions, 1 deletions
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))