From: Daniel Stenberg Date: Thu, 24 Jun 2004 15:15:27 +0000 (+0000) Subject: oops 5 bytes makes 4 letters plus zero byte X-Git-Tag: curl-7_12_1~195 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0cd96478c58b91629a2ed29ef663a8c3554cdad;p=thirdparty%2Fcurl.git oops 5 bytes makes 4 letters plus zero byte --- diff --git a/lib/inet_ntop.c b/lib/inet_ntop.c index eec06073be..0408bfdee5 100644 --- a/lib/inet_ntop.c +++ b/lib/inet_ntop.c @@ -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?