diff options
author | Rosen Penev <rosenp@gmail.com> | 2018-06-21 16:09:56 -0700 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-07-02 07:19:32 +0200 |
commit | 72684e5bb8d3a7deb0cfdafa77b40be0b6360ccd (patch) | |
tree | 07a3ddc7ecfbfe0b14b97a0fbbefd2b46a5bfc4b /rules.h | |
parent | 30463d08056db8f03d17c0569581aef96418c38d (diff) | |
download | firewall3-72684e5bb8d3a7deb0cfdafa77b40be0b6360ccd.tar.gz |
firewall3: Fix GCC8 warnings by replacing sprintf with snprintf
error: ‘%u’ directive writing between 1 and 10 bytes into a region of size
between 7 and 11 [-Werror=format-overflow=]
sprintf(buf, "%u-%u", port->port_min, port->port_max);
^~
note: directive argument in the range [0, 2147483647]
sprintf(buf, "%u-%u", port->port_min, port->port_max);
^~~~~~~
note: ‘sprintf’ output between 4 and 17 bytes into a destination of size
13
sprintf(buf, "%u-%u", port->port_min, port->port_max);
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'rules.h')
0 files changed, 0 insertions, 0 deletions