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

master
leitner 7 years ago
parent a4a2aed3de
commit 61db2acee6

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

Loading…
Cancel
Save