diff options
author | Phil Sutter <phil@nwl.cc> | 2017-09-01 18:52:55 +0200 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2017-09-01 12:10:54 -0700 |
commit | 9376314b49a47eb42ade3fc0d41cb51438f8dbc6 (patch) | |
tree | 79bde88431ead08b36f29a68f79ab2c8e222bde3 | |
parent | 44cc6c792a6503e024f042c65f35cd44b3283b20 (diff) |
tc_util: No need to terminate an snprintf'ed buffer
snprintf() won't leave the buffer unterminated, so manually terminating
is not necessary here.
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r-- | tc/tc_util.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tc/tc_util.c b/tc/tc_util.c index 37104683..50d35504 100644 --- a/tc/tc_util.c +++ b/tc/tc_util.c @@ -434,7 +434,6 @@ static const char *action_n2a(int action) return "trap"; default: snprintf(buf, 64, "%d", action); - buf[63] = '\0'; return buf; } } |