From a55b883146de6f630fe43f62820bcdf082d97bcc Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Tue, 7 Aug 2012 12:10:53 +0200 Subject: [PATCH] Noux: fix setup of child environment Fixes #315. --- ports/src/noux/child_env.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/src/noux/child_env.h b/ports/src/noux/child_env.h index 1c81fe8109..a32e258c32 100644 --- a/ports/src/noux/child_env.h +++ b/ports/src/noux/child_env.h @@ -63,11 +63,11 @@ namespace Noux { /* prepend a comma in front of each entry except for the first one */ if (i) { - snprintf(env + j, sizeof(env) - j, ","); + snprintf(_env + j, sizeof(_env) - j, ","); j++; } - snprintf(env + j, sizeof(env) - j, "%s", src); + snprintf(_env + j, sizeof(_env) - j, "%s", src); /* skip null separator in source string */ i += strlen(src) + 1;