X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsubnet_parse.c;h=c5f6976ff4080e364ccfc4b5a55c704e959fe7d1;hb=af81c436d6e11a53803747af7cc8ecfd449ccd4c;hp=611d6bd4415a83a2c4e99a921ce6f5c1df46aae8;hpb=97457716d7efc541d18d08263bbd338e94195bd9;p=tinc diff --git a/src/subnet_parse.c b/src/subnet_parse.c index 611d6bd4..c5f6976f 100644 --- a/src/subnet_parse.c +++ b/src/subnet_parse.c @@ -372,7 +372,7 @@ bool net2str(char *netstr, int len, const subnet_t *subnet) { result = snprintf(netstr, len, *format, ":::"); i += max_zero_length; } else { - result = snprintf(netstr, len, "%hx:", ntohs(subnet->net.ipv6.address.x[i])); + result = snprintf(netstr, len, "%x:", ntohs(subnet->net.ipv6.address.x[i])); i++; } netstr += result;