From: Fan Zhang Date: Fri, 11 Dec 2015 11:29:06 +0000 (+0000) Subject: examples/ip_pipeline: fix buffer size warning X-Git-Tag: spdx-start~7765 X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=81bd65ff2d9b85e1ad0e33bdb317b7a0ec5cc85e examples/ip_pipeline: fix buffer size warning Coverity issue: 107102 Fixes: 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax") Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu Acked-by: John McNamara --- diff --git a/examples/ip_pipeline/config_parse_tm.c b/examples/ip_pipeline/config_parse_tm.c index cdebbdc9f9..3932247517 100644 --- a/examples/ip_pipeline/config_parse_tm.c +++ b/examples/ip_pipeline/config_parse_tm.c @@ -349,7 +349,7 @@ tm_cfgfile_load_sched_subport( char *tokens[2] = {NULL, NULL}; int n_tokens; int begin, end; - char name[CFG_NAME_LEN]; + char name[CFG_NAME_LEN + 1]; profile = atoi(entries[j].value); strncpy(name,