From 17d87a933dd7e3744a68c61aaec21aedebce3440 Mon Sep 17 00:00:00 2001 From: haozi007 Date: Thu, 21 Jan 2021 11:06:31 +0800 Subject: [PATCH] log: support long syslog tag Signed-off-by: haozi007 --- src/lxc/confile.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index f108b37b..e898e23b 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -6634,13 +6634,10 @@ static int set_config_console_log_driver(const char *key, const char *value, static int set_config_console_syslog_tag(const char *key, const char *value, struct lxc_conf *lxc_conf, void *data) { - char buf[16] = { 0 }; - if (value == NULL) { return -1; } - (void)strlcpy(buf, value, 16); - return set_config_string_item(&lxc_conf->console.log_syslog_tag, buf); + return set_config_string_item(&lxc_conf->console.log_syslog_tag, value); } static int parse_facility(const char *facility) -- 2.25.1