int i, num_splits = 0;
/* copy s so we don't modify original string */
- snprintf(str, sizeof(str), "%s", s);
+ strlcpy(str, s, sizeof(str));
num_splits = rte_strsplit(str, sizeof(str), splits, num_vals, separator);
errno = 0;
errno = 0;
lcore = strtoul(p, NULL, 0);
- if ((errno != 0)) {
+ if (errno != 0) {
return -2;
}