examples/ip_pipeline: fix buffer size warning
authorFan Zhang <roy.fan.zhang@intel.com>
Fri, 11 Dec 2015 11:29:06 +0000 (11:29 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 13 Dec 2015 01:34:04 +0000 (02:34 +0100)
Coverity issue: 107102
Fixes: 7f64b9c004aa ("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>
examples/ip_pipeline/config_parse_tm.c

index cdebbdc..3932247 100644 (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,