You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
449 B
16 lines
449 B
--- arpd.c.dist 2003-07-02 16:49:31.000000000 +0200 |
|
+++ arpd.c 2003-07-02 16:53:25.000000000 +0200 |
|
@@ -111,9 +111,11 @@ |
|
struct in_addr in; |
|
ip_addr_t istart, iend; |
|
|
|
- second = p; |
|
+ first = p; |
|
+ second = strchr(p, '-'); |
|
+ if (second != NULL) |
|
+ *second++ = '\0'; |
|
|
|
- first = strsep(&second, "-"); |
|
if (second == NULL) |
|
errx(1, "%s: Invalid network range: %s", |
|
__func__, p);
|
|
|