SPT_BUFSIZE
(void)snprintf(buf, SPT_BUFSIZE, "%s: ", _getprogname());
(void)vsnprintf(buf + len, SPT_BUFSIZE - len, fmt, ap);
snprintf(obuf + len, SPT_BUFSIZE - len, "%s%s",
if (len >= SPT_BUFSIZE)
buf = malloc(SPT_BUFSIZE);
obuf = malloc(SPT_BUFSIZE);
buf[SPT_BUFSIZE - 1] = '\0';