On Fri, 03.02.12 21:14, Michael Olbrich ([email protected]) wrote: > --- > src/service.c | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/src/service.c b/src/service.c > index f030ccf..9bd3332 100644 > --- a/src/service.c > +++ b/src/service.c > @@ -1726,6 +1726,12 @@ static int service_spawn( > goto fail; > } > > + if (s->watchdog_usec > 0) > + if (asprintf(our_env + n_env++, "WATCHDOG_USEC=%llu", > (unsigned long long) s->watchdog_usec) < 0) { > + r = -ENOMEM; > + goto fail; > + } > +
our_env needs to be allocated larger for this. You need to increase the new0() line to 5 instead of the current 4 char* objects. Lennart -- Lennart Poettering - Red Hat, Inc. _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
