Skip to content

Commit

Permalink
JDK-8345676
Browse files Browse the repository at this point in the history
  • Loading branch information
MBaesken committed Jan 3, 2025
1 parent 84e6432 commit 775578e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/java.base/unix/native/libjava/ProcessImpl_md.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,9 @@ spawnChild(JNIEnv *env, jobject process, ChildStuff *c, const char *helperpath)
return -1;
}
offset = copystrings(buf, 0, &c->argv[0]);
offset = copystrings(buf, offset, &c->envv[0]);
if (c->envv != NULL) {
offset = copystrings(buf, offset, &c->envv[0]);
}
if (c->pdir != NULL) {
if (sp.dirlen > 0) {
memcpy(buf+offset, c->pdir, sp.dirlen);
Expand Down

0 comments on commit 775578e

Please sign in to comment.