Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
c810b29a
Commit
c810b29a
authored
Mar 02, 2016
by
Luka Stanisic
Browse files
minor fix of the memcpy function call
parent
6b3a6071
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/GroupTree/StarPUUtils/FStarPUTaskNameParams.hpp
View file @
c810b29a
...
...
@@ -43,7 +43,7 @@ public:
const
char
*
add
(
const
char
*
strToCpy
){
const
size_t
length
=
strlen
(
strToCpy
);
char
*
cpy
=
new
char
[
length
+
1
];
memcpy
(
cpy
,
length
,
strToCpy
,
length
);
memcpy
(
cpy
,
strToCpy
,
length
);
cpy
[
length
]
=
'\0'
;
names
.
push_back
(
cpy
);
return
cpy
;
...
...
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