Commit 668231c3 authored by Marcel Raad's avatar Marcel Raad Committed by Daniel Stenberg
Browse files

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
parent cb6a07fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {
    /*