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
cfa82f4d
Commit
cfa82f4d
authored
Oct 05, 2000
by
Tom Tromey
Committed by
Tom Tromey
Oct 05, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
From-SVN: r36733
parent
61a77fea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
libjava/ChangeLog
+4
-0
libjava/gnu/gcj/convert/natIconv.cc
+4
-2
No files found.
libjava/ChangeLog
View file @
cfa82f4d
2000-10-05 Tom Tromey <tromey@cygnus.com>
* gnu/gcj/convert/natIconv.cc (init): Terminate buffer.
2000-10-02 Bryce McKinlay <bryce@albatross.co.nz>
* prims.cc (_Jv_argv, _Jv_argc): New fields.
...
...
libjava/gnu/gcj/convert/natIconv.cc
View file @
cfa82f4d
...
...
@@ -38,8 +38,9 @@ gnu::gcj::convert::Input_iconv::init (jstring encoding)
{
#ifdef HAVE_ICONV
jsize
len
=
_Jv_GetStringUTFLength
(
encoding
);
char
buffer
[
len
];
char
buffer
[
len
+
1
];
_Jv_GetStringUTFRegion
(
encoding
,
0
,
len
,
buffer
);
buffer
[
len
]
=
'\0'
;
iconv_t
h
=
iconv_open
(
"UCS-2"
,
buffer
);
if
(
h
==
(
iconv_t
)
-
1
)
...
...
@@ -97,8 +98,9 @@ gnu::gcj::convert::Output_iconv::init (jstring encoding)
{
#ifdef HAVE_ICONV
jsize
len
=
_Jv_GetStringUTFLength
(
encoding
);
char
buffer
[
len
];
char
buffer
[
len
+
1
];
_Jv_GetStringUTFRegion
(
encoding
,
0
,
len
,
buffer
);
buffer
[
len
]
=
'\0'
;
iconv_t
h
=
iconv_open
(
buffer
,
"UCS-2"
);
if
(
h
==
(
iconv_t
)
-
1
)
...
...
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