summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl/inet_pton.c
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmcurl/inet_pton.c')
-rw-r--r--Utilities/cmcurl/inet_pton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/cmcurl/inet_pton.c b/Utilities/cmcurl/inet_pton.c
index 5e8e9b3..ed74c26 100644
--- a/Utilities/cmcurl/inet_pton.c
+++ b/Utilities/cmcurl/inet_pton.c
@@ -113,11 +113,11 @@ inet_pton4(const char *src, unsigned char *dst)
const char *pch;
if ((pch = strchr(digits, ch)) != NULL) {
- u_int new = *tp * 10 + (pch - digits);
+ size_t new = *tp * 10 + (pch - digits);
if (new > 255)
return (0);
- *tp = new;
+ *tp = (unsigned char)new;
if (! saw_digit) {
if (++octets > 4)
return (0);