--- 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);