projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Clean-up: use sizeof instead of repeating string length constant
[lttng-tools.git]
/
src
/
common
/
event-rule
/
user-tracepoint.cpp
diff --git
a/src/common/event-rule/user-tracepoint.cpp
b/src/common/event-rule/user-tracepoint.cpp
index 5158eeaa072c992a57aa777e4ee8fe0552ea40b5..cc76d229dba4872eb92409e468fd7e054d1e890f 100644
(file)
--- a/
src/common/event-rule/user-tracepoint.cpp
+++ b/
src/common/event-rule/user-tracepoint.cpp
@@
-381,7
+381,7
@@
lttng_event_rule_user_tracepoint_generate_exclusions(
LTTNG_ASSERT(event_rule_status == LTTNG_EVENT_RULE_STATUS_OK);
copy_ret = lttng_strncpy(exclusions->names[i], exclusion_str,
-
LTTNG_SYMBOL_NAME_LEN
);
+
sizeof(exclusions->names[i])
);
if (copy_ret) {
free(exclusions);
exclusions = NULL;
This page took
0.02354 seconds
and
4
git commands to generate.