mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-02 17:15:51 +00:00
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>
This commit is contained in:
parent
44cc6c792a
commit
9376314b49
@ -434,7 +434,6 @@ static const char *action_n2a(int action)
|
||||
return "trap";
|
||||
default:
|
||||
snprintf(buf, 64, "%d", action);
|
||||
buf[63] = '\0';
|
||||
return buf;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user