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
6342ca06
Commit
6342ca06
authored
Nov 27, 2023
by
Artur Wojcik
Browse files
fix src and dest arguments of std::strncpy()
parent
47130a02
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/process.cpp
src/process.cpp
+5
-1
No files found.
src/process.cpp
View file @
6342ca06
...
...
@@ -219,7 +219,7 @@ int exec(const std::pair<std::string, std::string>& command, F f)
info
.
dwFlags
|=
STARTF_USESTDHANDLES
;
TCHAR
cmdline
[
MAX_PATH
];
std
::
strncpy
(
c
onst_cast
<
TCHAR
*>
(
cmd
.
c_str
()
),
cmdline
,
MAX_PATH
);
std
::
strncpy
(
c
mdline
,
cmd
.
c_str
(),
MAX_PATH
);
ZeroMemory
(
&
process_info
,
sizeof
(
process_info
));
...
...
@@ -360,7 +360,11 @@ void process::exec()
void
process
::
write
(
std
::
function
<
void
(
process
::
writer
)
>
pipe_in
)
{
#ifndef _WIN32
impl
->
check_exec
(
impl
->
get_command
(),
std
::
move
(
pipe_in
));
#else
impl
->
check_exec
(
impl
->
get_params
(),
std
::
move
(
pipe_in
));
#endif
}
}
// namespace MIGRAPHX_INLINE_NS
...
...
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