mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
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:
parent
cb6a07fed0
commit
668231c309
@ -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) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user