Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
ce63fdce
Commit
ce63fdce
authored
Dec 17, 1999
by
Tom Tromey
Committed by
Tom Tromey
Dec 17, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
From-SVN: r30996
parent
53f4a9f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
libjava/ChangeLog
+4
-0
libjava/java/lang/natPosixProcess.cc
+5
-4
No files found.
libjava/ChangeLog
View file @
ce63fdce
1999-12-17 Tom Tromey <tromey@cygnus.com>
* java/lang/natPosixProcess.cc (startProcess): Don't use sprintf.
1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
1999-12-16 Bryce McKinlay <bryce@albatross.co.nz>
* java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
* java/lang/Boolean.java (Boolean(String)): Set `value' to false on a
...
...
libjava/java/lang/natPosixProcess.cc
View file @
ce63fdce
...
@@ -168,12 +168,13 @@ java::lang::ConcreteProcess::startProcess (jstringArray progarray,
...
@@ -168,12 +168,13 @@ java::lang::ConcreteProcess::startProcess (jstringArray progarray,
if
(
envp
)
if
(
envp
)
{
{
// preserve PATH unless specified explicitly
// preserve PATH unless specified explicitly
char
*
path_val
=
getenv
(
"PATH"
);
char
*
path_val
=
getenv
(
"PATH"
);
environ
=
env
;
environ
=
env
;
if
(
getenv
(
"PATH"
)
==
NULL
)
if
(
getenv
(
"PATH"
)
==
NULL
)
{
{
char
*
path_env
=
(
char
*
)
_Jv_Malloc
(
strlen
(
path_val
)
+
5
+
1
);
char
*
path_env
=
(
char
*
)
_Jv_Malloc
(
strlen
(
path_val
)
+
5
+
1
);
sprintf
(
path_env
,
"PATH=%s"
,
path_val
);
strcpy
(
path_env
,
"PATH="
);
strcat
(
path_env
,
path_val
);
putenv
(
path_env
);
putenv
(
path_env
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment