]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
API doc: update note for get_config_item
author0x0916 <w@laoqinren.net>
Mon, 26 Jun 2017 09:28:47 +0000 (17:28 +0800)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 15 Aug 2017 22:56:17 +0000 (18:56 -0400)
Fix issue: https://github.com/lxc/lxc/issues/505

Signed-off-by: 0x0916 <w@laoqinren.net>
src/lxc/lxccontainer.h

index a58d3450a27b0630929f14555c13e9a11a4af235..8fe4e37e58865a7bb9a4f184db71fd0fe144a57e 100644 (file)
@@ -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);