]> git.ipfire.org Git - thirdparty/lxc.git/commit
Suppress hardcoded table sizes
authorRachid Koucha <47061324+Rachid-Koucha@users.noreply.github.com>
Thu, 11 Jul 2019 08:01:36 +0000 (10:01 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 11 Aug 2019 19:41:07 +0000 (21:41 +0200)
commit025472f9c78ee670f5a57b444b790f1e221bf776
tree0529cdd0017deeb76790a13cf6c8c4b5f0b4f47b
parentf2dc70c18bfd32c553b89cc94729b1d2070a0169
Suppress hardcoded table sizes

. Use sizeof() instead of hardcoded values
. snprintf(..., size, ""...) is in error if the return code is >= size (not sufficient to set only ">")

Signed-off-by: Rachid Koucha <rachid.koucha@gmail.com>
src/lxc/utils.c