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
"exampleREAD" did not exist on "5055b3bdcb5a7f0b8f359b606d3c5b75efd6df54"
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