Browse Source

no :: at the end if it's only :0

master
Felix von Leitner 4 years ago
parent
commit
8dc2bb262b
  1. 2
      socket/fmt_ip6.c

2
socket/fmt_ip6.c

@ -11,7 +11,7 @@ size_t fmt_ip6(char *s,const char ip[16])
for (k=0; k<16; k+=2) {
if (ip[k]==0 && ip[k+1]==0) {
if (!compr) {
if (k==14 || (ip[k+2]==0 && ip[k+3]==0)) {
if (k<=14 && ip[k+2]==0 && ip[k+3]==0) {
compr=1;
pos1=k;
}

Loading…
Cancel
Save