diff options
Diffstat (limited to 'networking')
-rw-r--r-- | networking/libiproute/ll_addr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/libiproute/ll_addr.c b/networking/libiproute/ll_addr.c index ba0a65a18..b4a218780 100644 --- a/networking/libiproute/ll_addr.c +++ b/networking/libiproute/ll_addr.c @@ -31,7 +31,7 @@ const char *ll_addr_n2a(unsigned char *addr, int alen, int type, char *buf, int l = 0; for (i=0; i<alen; i++) { if (i==0) { - snprintf(buf+l, blen, "%02x", addr[i]); + snprintf(buf+l, blen, ":%02x"+1, addr[i]); blen -= 2; l += 2; } else { |