summaryrefslogtreecommitdiff
path: root/lib/inet_pton.c
diff options
context:
space:
mode:
authorMarcel Raad <MarcelRaad@users.noreply.github.com>2015-09-03 11:32:39 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-09-03 11:37:50 +0200
commit668231c3093ea506e9ba2aa98f0a3130ac259a5b (patch)
treeeb6fff479c2bd57f5999f0dce55b63e2dbf099a1 /lib/inet_pton.c
parentcb6a07fed03459368e71b738b1bc9448213c4dfb (diff)
downloadcurl-668231c3093ea506e9ba2aa98f0a3130ac259a5b.tar.gz
inet_pton.c: Fix MSVC run-time check failure (2)
This fixes another run-time check failure because of a narrowing cast on Visual C++. Closes #408
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 34dfc31e7..7d4714db7 100644
--- a/lib/inet_pton.c
+++ b/lib/inet_pton.c
@@ -206,7 +206,7 @@ inet_pton6(const char *src, unsigned char *dst)
if(tp + INT16SZ > endp)
return (0);
*tp++ = (unsigned char) (val >> 8) & 0xff;
- *tp++ = (unsigned char) val & 0xff;
+ *tp++ = (unsigned char) (val & 0xff);
}
if(colonp != NULL) {
/*