Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iRMB
VirtualFluids
Commits
d5773580
Commit
d5773580
authored
4 years ago
by
Soeren Peters
Browse files
Options
Downloads
Patches
Plain Diff
Need to rely on STRCPY.
parent
ec2010c3
No related branches found
No related tags found
1 merge request
!29
Remove compiler warnings.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
3rdParty/cuda_samples/helper_string.h
+1
-1
1 addition, 1 deletion
3rdParty/cuda_samples/helper_string.h
with
1 addition
and
1 deletion
3rdParty/cuda_samples/helper_string.h
+
1
−
1
View file @
d5773580
...
...
@@ -352,7 +352,7 @@ inline char *sdkFindFilePath(const char *filename,
// File found
// returning an allocated array here for backwards compatibility reasons
char
*
file_path
=
reinterpret_cast
<
char
*>
(
malloc
(
path
.
length
()
+
1
));
strcpy_s
(
file_path
,
path
.
length
()
+
1
,
path
.
c_str
());
STRCPY
(
file_path
,
path
.
length
()
+
1
,
path
.
c_str
());
return
file_path
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment