diff options
author | Phil Sutter <phil@nwl.cc> | 2019-11-21 11:59:23 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-11-21 16:47:36 +0100 |
commit | 4e5e23adaad58cded55b55b6c90aa0cbc207feb2 (patch) | |
tree | 91d1d853db757394c759528fdf071b7257dfa471 /include/favicon.ico | |
parent | bf11d72b8adb57a76936cea6ac4db942136d053d (diff) |
Eliminate compiler warning about size passed to strncmp()
Gcc complains about the size being equal to destination size, despite
the nul character being explicitly set in following line.
Reduce size by one to make gcc happy. While being at it, drop the
explicit nul character assignment - it is not needed as the buffer was
allocated by calloc().
Fixes: 8f586939999e0 ("fix potential buffer overflows reported by static analysis")
Acked-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/favicon.ico')
0 files changed, 0 insertions, 0 deletions