projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
c3ef76c
)
Silence strncpy warning emitted by GCC 8 in lttng_strncpy()
author
Jérémie Galarneau
<jeremie.galarneau@efficios.com>
Fri, 1 Jun 2018 16:54:00 +0000
(12:54 -0400)
committer
Jérémie Galarneau
<jeremie.galarneau@efficios.com>
Fri, 1 Jun 2018 17:02:28 +0000
(13:02 -0400)
GCC 8 warns if the destination's length is passed to strncpy,
since that could cause the destination to not be NULL-terminated.
This is not a concern for the lttng_strncpy since it checks
that the source must not be truncated. Therefore, it is safe
to simply use strcpy().
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
No differences found
This page took
0.025481 seconds
and
4
git commands to generate.