summaryrefslogtreecommitdiff
path: root/lib/inet_pton.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/inet_pton.c')
-rw-r--r--lib/inet_pton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inet_pton.c b/lib/inet_pton.c
index fb7feef28..163df3ce3 100644
--- a/lib/inet_pton.c
+++ b/lib/inet_pton.c
@@ -116,7 +116,7 @@ inet_pton4(const char *src, unsigned char *dst)
if (val > 255)
return (0);
- *tp = val;
+ *tp = (unsigned char)val;
if (! saw_digit) {
if (++octets > 4)
return (0);