aboutsummaryrefslogtreecommitdiff
path: root/lib/inet_ntop.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-06-24 15:15:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-06-24 15:15:27 +0000
commitb0cd96478c58b91629a2ed29ef663a8c3554cdad (patch)
tree463d3d979321cba5ceb3d45fc58e23c0d158d4ac /lib/inet_ntop.c
parent387ec712e6806e85c2d0b0e4c2568f95d559eef7 (diff)
oops 5 bytes makes 4 letters plus zero byte
Diffstat (limited to 'lib/inet_ntop.c')
-rw-r--r--lib/inet_ntop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inet_ntop.c b/lib/inet_ntop.c
index eec06073b..0408bfdee 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?