register unsigned char c;
if (len <= 2) return buf;
*buf++ = '"'; count++; len--;
- for(; (count < 40) && (len > 1) && (c = *cp);
+ for(; (count < 258) && (len > 1) && (c = *cp);
cp++, --len, ++count) {
if (c == '\\' || c == '"') *buf++ = '\\';
if (isprint(c)) *buf++ = c;
}
}
if (len > 1) { *buf++ = '"'; count++; len--; }
- if (len > 3 && count >= 40) {
- *buf++ = '.'; count++; len--;
- *buf++ = '.'; count++; len--;
- *buf++ = '.'; count++; len--;
- }
if (len > 1) *buf = '\0';
return buf;
}
sprintf(buf, "%s[%d]: ", tag, version);
for (bp = buf; *bp; bp++);
- for (i = 0; i < argc && ((buf - bp) + 1024) > 2; i++) {
+ for (i = 0; i < argc && ((buf - bp) + BUFSIZ) > 2; i++) {
if (i != 0) {
*bp++ = ',';
*bp++ = ' ';
}
- bp = requote(bp, argv[i], (buf - bp) + 1024);
+ bp = requote(bp, argv[i], (buf - bp) + BUFSIZ);
}
*bp = '\0';
com_err(whoami, 0, "%s", buf);