From: 0x0916 Date: Mon, 26 Jun 2017 09:28:47 +0000 (+0800) Subject: API doc: update note for get_config_item X-Git-Tag: lxc-1.0.11~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24ff59afa71a905f7256aafc490f97bc391bc579;p=thirdparty%2Flxc.git API doc: update note for get_config_item Fix issue: https://github.com/lxc/lxc/issues/505 Signed-off-by: 0x0916 --- diff --git a/src/lxc/lxccontainer.h b/src/lxc/lxccontainer.h index a58d3450a..8fe4e37e5 100644 --- a/src/lxc/lxccontainer.h +++ b/src/lxc/lxccontainer.h @@ -406,8 +406,8 @@ struct lxc_container { * \p retv by initially passing its value as \c NULL and considering the return value. * This function can then be called again passing a newly-allocated suitably-sized buffer. * \note If \p retv is NULL, \p inlen is ignored. - * \note If \p inlen is smaller than required, the value written - * to \p retv will be truncated. + * \note If \p inlen is smaller than required, nothing will be written to \p retv and still return + * the length of config item value. */ int (*get_config_item)(struct lxc_container *c, const char *key, char *retv, int inlen);