#include "include/strlcpy.h"
#endif
+#ifndef HAVE_STRLCAT
+#include "include/strlcat.h"
+#endif
+
lxc_log_define(lxc_confile, lxc);
#define lxc_config_define(name) \
conf->unexpanded_alloced += 1024;
}
- strncat(conf->unexpanded_config, line, linelen);
+ (void)strlcat(conf->unexpanded_config, line, conf->unexpanded_alloced);
conf->unexpanded_len += linelen;
if (line[linelen - 1] != '\n') {
- strncat(conf->unexpanded_config, "\n", 1);
+ (void)strlcat(conf->unexpanded_config, "\n", conf->unexpanded_alloced);
conf->unexpanded_len++;
}