Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
e5255880
Commit
e5255880
authored
Jul 24, 2020
by
houkime
Committed by
Esteban Blanc
Nov 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cnv_wbltoh.cpp: safer trimming
parent
7951e08e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/exe/co_convert/src/cnv_wbltoh.cpp
src/exe/co_convert/src/cnv_wbltoh.cpp
+2
-3
No files found.
src/exe/co_convert/src/cnv_wbltoh.cpp
View file @
e5255880
...
...
@@ -414,10 +414,9 @@ int CnvWblToH::attribute_exec()
strcpy
(
pgmname
,
ctx
->
rw
->
attr_pgmname
);
if
(
str_StartsWith
(
CnvCtx
::
low
(
ctx
->
rw
->
attr_typeref
),
"pwr_etype_"
))
strcpy
(
ctx
->
rw
->
attr_typeref
,
&
ctx
->
rw
->
attr_typeref
[
strlen
(
"pwr_etype_"
)]
);
memmove
(
ctx
->
rw
->
attr_typeref
,
&
ctx
->
rw
->
attr_typeref
[
strlen
(
"pwr_etype_"
)],
strlen
(
&
ctx
->
rw
->
attr_typeref
[
strlen
(
"pwr_etype_"
)])
+
1
);
else
if
(
str_StartsWith
(
CnvCtx
::
low
(
ctx
->
rw
->
attr_typeref
),
"pwr_etypedef_"
))
strcpy
(
ctx
->
rw
->
attr_typeref
,
&
ctx
->
rw
->
attr_typeref
[
strlen
(
"pwr_etypedef_"
)]);
memmove
(
ctx
->
rw
->
attr_typeref
,
&
ctx
->
rw
->
attr_typeref
[
strlen
(
"pwr_etypedef_"
)],
strlen
(
&
ctx
->
rw
->
attr_typeref
[
strlen
(
"pwr_etypedef_"
)])
+
1
);
if
(
streq
(
CnvCtx
::
low
(
ctx
->
rw
->
attr_type
),
"buffer"
))
{
strcpy
(
type_name
,
"pwr_s"
);
...
...
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