diff options
Diffstat (limited to 'xlators/debug/trace/src')
-rw-r--r-- | xlators/debug/trace/src/trace.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xlators/debug/trace/src/trace.c b/xlators/debug/trace/src/trace.c index d9f88bff78e..3ad3769afd8 100644 --- a/xlators/debug/trace/src/trace.c +++ b/xlators/debug/trace/src/trace.c @@ -3109,11 +3109,13 @@ reconfigure (xlator_t *this, dict_t *options) if (gf_fop_list[i]) strncpy (trace_fop_names[i].name, gf_fop_list[i], - strlen (gf_fop_list[i])); + sizeof (trace_fop_names[i].name)); else - strncpy (trace_fop_names[i].name, ":O", - strlen (":O")); + strncpy (trace_fop_names[i].name, ":0", + sizeof (trace_fop_names[i].name)); trace_fop_names[i].enabled = 1; + trace_fop_names[i].name[sizeof ( + trace_fop_names[i].name) - 1] = 0; } } |