Hi, Now syslogd can handle 8192 bytes per message. I think we should increase the libc syslog(3) limit to the same size. The buffer needs one byte more as it conains a NUL byte that sendsyslog(2) does not process.
ok? bluhm Index: lib/libc/gen/syslog_r.c =================================================================== RCS file: /data/mirror/openbsd/cvs/src/lib/libc/gen/syslog_r.c,v retrieving revision 1.7 diff -u -p -r1.7 syslog_r.c --- lib/libc/gen/syslog_r.c 21 Jan 2015 19:34:24 -0000 1.7 +++ lib/libc/gen/syslog_r.c 6 Sep 2015 23:50:37 -0000 @@ -89,7 +89,7 @@ __vsyslog_r(int pri, struct syslog_data int cnt; char ch, *p, *t; int fd, saved_errno, error; -#define TBUF_LEN 2048 +#define TBUF_LEN (8192+1) #define FMT_LEN 1024 char *conp = NULL, *stdp = NULL, tbuf[TBUF_LEN], fmt_cpy[FMT_LEN]; int tbuf_left, fmt_left, prlen;