examples/ip_pipeline: fix buffer size warning

Coverity issue: 107102
Fixes: 7f64b9c004 ("examples/ip_pipeline: rework config file syntax")

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
This commit is contained in:
Fan Zhang 2015-12-11 11:29:06 +00:00 committed by Thomas Monjalon
parent 766ad08900
commit 81bd65ff2d

View File

@ -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,