projects/aports·blob master · refs

15 lines · 488 B

1http://lists.beasts.org/pipermail/iftop-users/2014-March/000413.html
2
3diff --git a/iftop.c b/iftop.c
4index a090dcf..883782e 100644
5--- a/iftop.c
6+++ b/iftop.c
7@@ -713,7 +713,7 @@ void packet_init() {
8 if(have_hw_addr) {
9 fprintf(stderr, "MAC address is:");
10 for (i = 0; i < 6; ++i)
11- fprintf(stderr, "%c%02x", i ? ':' : ' ', (unsigned int)if_hw_addr[i]);
12+ fprintf(stderr, "%c%02x", i ? ':' : ' ', (unsigned char)if_hw_addr[i]);
13 fprintf(stderr, "\n");
14 }
15