Noux: fix setup of child environment

Fixes #315.
This commit is contained in:
Christian Prochaska 2012-08-07 12:10:53 +02:00 committed by Norman Feske
parent a5e95167d9
commit a55b883146
1 changed files with 2 additions and 2 deletions

View File

@ -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;