Description: fixes sprintf(dest, "xxx%cyyy", '\0') dest must not be truncated, it must contain "xxx\0yyy\0" This bug probably affects only short strings, see asprintf.c Index: b/usr/src/lib/libc/port/print/asprintf.c =================================================================== --- a/usr/src/lib/libc/port/print/asprintf.c +++ b/usr/src/lib/libc/port/print/asprintf.c @@ -49,7 +49,7 @@ vasprintf(char **str, const char *format len = ret + 1; if ((newstr = malloc(len)) == NULL) return (-1); /* retain errno from malloc() */ - (void) strlcpy(newstr, string, len); + (void) memcpy(newstr, string, len); *str = newstr; return (ret); }