Displaying 1 result from an estimated 1 matches for "in6addrsz".
Did you mean:
in6addr
2001 May 18
0
patch to change sprintf to snprintf in inet_ntop.c for SunOS4
...src[3]) > size) {
errno = ENOSPC;
return (NULL);
}
***************
*** 190,196 ****
tp += strlen(tp);
break;
}
! tp += sprintf(tp, "%x", words[i]);
}
/* Was it a trailing run of 0x00's? */
if (best.base != -1 && (best.base + best.len) == (IN6ADDRSZ / INT16SZ))
--- 190,196 ----
tp += strlen(tp);
break;
}
! tp += snprintf(tp, sizeof "ffff", "%x", words[i]);
}
/* Was it a trailing run of 0x00's? */
if (best.base != -1 && (best.base + best.len) == (IN6ADDRSZ / INT16SZ))