[BACK]Return to inet_ntop.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / inet

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/inet/inet_ntop.c between version 1.11 and 1.12

version 1.11, 2014/02/10 16:30:54 version 1.12, 2018/03/02 06:31:53
Line 106  inet_ntop4(const u_char *src, char *dst,
Line 106  inet_ntop4(const u_char *src, char *dst,
   
         l = snprintf(tmp, sizeof(tmp), "%u.%u.%u.%u",          l = snprintf(tmp, sizeof(tmp), "%u.%u.%u.%u",
             src[0], src[1], src[2], src[3]);              src[0], src[1], src[2], src[3]);
         if (l <= 0 || (socklen_t) l >= size)          if (l <= 0 || (socklen_t) l >= size) {
                   errno = ENOSPC;
                 return NULL;                  return NULL;
           }
         strlcpy(dst, tmp, size);          strlcpy(dst, tmp, size);
         return dst;          return dst;
 }  }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

CVSweb <webmaster@jp.NetBSD.org>