]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
oops 5 bytes makes 4 letters plus zero byte
authorDaniel Stenberg <daniel@haxx.se>
Thu, 24 Jun 2004 15:15:27 +0000 (15:15 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 24 Jun 2004 15:15:27 +0000 (15:15 +0000)
lib/inet_ntop.c

index eec06073be5d53e7c9d2b046ccb53d95f43d82f9..0408bfdee577af1d504a9fcf6df1b764db5c3a05 100644 (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?