oops 5 bytes makes 4 letters plus zero byte

This commit is contained in:
Daniel Stenberg 2004-06-24 15:15:27 +00:00
parent 387ec712e6
commit b0cd96478c

View File

@ -155,7 +155,7 @@ static const char *inet_ntop6 (const u_char *src, char *dst, size_t size)
tp += strlen(tp);
break;
}
tp += snprintf(tp, 4, "%lx", words[i]);
tp += snprintf(tp, 5, "%lx", words[i]);
}
/* Was it a trailing run of 0x00's?