]> git.ipfire.org Git - thirdparty/lxc.git/commit
string_utils: add wrapper for snprintf()
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 11 Feb 2021 09:14:34 +0000 (10:14 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 11 Feb 2021 09:14:34 +0000 (10:14 +0100)
commit66efb199f75a49c13246d760e894bd0f4891e5ce
tree5b9d9bd52c21904ff4a9fc6b67238e6701ca833f
parentff4e4629061db18d0935535ba6b82b1e434e2447
string_utils: add wrapper for snprintf()

This let's us avoid the tedious

if (ret < 0 || (size_t)ret >= sizeof(buf))

style of error checking.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/string_utils.h