Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
47130a02
"docs/source/hpo/custom_algorithm.rst" did not exist on "abd164c2598d4cf19a081b4e5c1070de7bea8386"
Commit
47130a02
authored
Nov 27, 2023
by
Artur Wojcik
Browse files
fix const cast strncpy() source argument
parent
64199a0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/process.cpp
src/process.cpp
+3
-3
No files found.
src/process.cpp
View file @
47130a02
...
@@ -218,10 +218,10 @@ int exec(const std::pair<std::string, std::string>& command, F f)
...
@@ -218,10 +218,10 @@ int exec(const std::pair<std::string, std::string>& command, F f)
info
.
hStdInput
=
input
.
get_read_handle
();
info
.
hStdInput
=
input
.
get_read_handle
();
info
.
dwFlags
|=
STARTF_USESTDHANDLES
;
info
.
dwFlags
|=
STARTF_USESTDHANDLES
;
ZeroMemory
(
&
process_info
,
sizeof
(
process_info
));
TCHAR
cmdline
[
MAX_PATH
];
std
::
strncpy
(
const_cast
<
TCHAR
*>
(
cmd
.
c_str
()),
cmdline
,
MAX_PATH
);
TCHAR
cmdline
[
MAX_PATH
];
ZeroMemory
(
&
process_info
,
sizeof
(
process_info
));
std
::
strncpy
(
cmd
.
c_str
(),
cmdline
,
MAX_PATH
);
if
(
CreateProcess
(
nullptr
,
if
(
CreateProcess
(
nullptr
,
cmdline
,
cmdline
,
...
...
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