Reduce stack usage during rtable parse (requires ifnames to be shorter than 10)
@@ -114,7 +114,7 @@ static int csp_rtable_parse(char * buffer, int dry_run) {
while ((str) && (strlen(str) > 1)) {
int address = 0, netmask = 0, mac = 255;
- char name[100] = {};
+ char name[10] = {};
if (sscanf(str, "%u/%u %s %u", &address, &netmask, name, &mac) != 4) {
if (sscanf(str, "%u/%u %s", &address, &netmask, name) != 3) {
csp_log_error("Parse error %s", str);
