mirror of
https://github.com/curl/curl.git
synced 2026-07-12 07:47:17 +03: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue