1 diff -up net-tools-2.0/lib/interface.c.long_iface net-tools-2.0/lib/interface.c
2 --- net-tools-2.0/lib/interface.c.long_iface 2014-11-24 15:09:45.130254503 +0100
3 +++ net-tools-2.0/lib/interface.c 2014-11-24 15:10:54.662270496 +0100
4 @@ -216,6 +216,7 @@ out:
6 static const char *get_name(char **namep, const char *p)
11 char *name = *namep = p;
12 @@ -224,7 +225,13 @@ static const char *get_name(char **namep
14 if (*p == ':') { /* could be an alias */
15 const char *dot = p++;
16 - while (*p && isdigit(*p)) p++;
18 + while (*p && isdigit(*p)) {
21 + if (count == (IFNAMSIZ-1))
25 /* Yes it is, backup and copy it. */
27 @@ -240,6 +247,9 @@ static const char *get_name(char **namep
32 + if (count == (IFNAMSIZ-1))