--- arping.c +++ arping.c @@ -335,8 +335,8 @@ void set_device_broadcast(char *device, unsigned char *ba, size_t balen) exit(2); } - for (p = ba, ch = 0; p < ba + balen; p++, ch += 3) - *p++ = strtoul(brdcast->value + ch * 3, NULL, 16); + for (p = ba, ch = 0; p < ba + balen; ch += 3) + *p++ = strtoul(brdcast->value + ch, NULL, 16); return; } -- 1.7.1