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
This commit is contained in:
Marcel Raad 2015-09-03 11:32:39 +02:00 committed by Daniel Stenberg
parent cb6a07fed0
commit 668231c309

View File

@ -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) {
/*