summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/syslog_r.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2015-09-09 10:50:59 +0000
committerbluhm <bluhm@openbsd.org>2015-09-09 10:50:59 +0000
commit859ef9a297a8a2dd4e24632b49ecde0157f44f34 (patch)
treeec81e7e530b13e1458dd29fc53fb7bb1e76445d9 /lib/libc/gen/syslog_r.c
parentFetch the _GLOBAL)OFFSET_TABLE_ and _DYNAMIC pointers in a way that's (diff)
downloadwireguard-openbsd-859ef9a297a8a2dd4e24632b49ecde0157f44f34.tar.xz
wireguard-openbsd-859ef9a297a8a2dd4e24632b49ecde0157f44f34.zip
Syslogd can handle 8192 bytes per message now. Increase the libc
syslog(3) limit to the same size. The buffer needs one byte more as it conains a NUL that sendsyslog(2) does not process. OK deraadt@
Diffstat (limited to 'lib/libc/gen/syslog_r.c')
-rw-r--r--lib/libc/gen/syslog_r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/syslog_r.c b/lib/libc/gen/syslog_r.c
index 4f758fdd000..fa2a2c839f6 100644
--- a/lib/libc/gen/syslog_r.c
+++ b/lib/libc/gen/syslog_r.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syslog_r.c,v 1.7 2015/01/21 19:34:24 deraadt Exp $ */
+/* $OpenBSD: syslog_r.c,v 1.8 2015/09/09 10:50:59 bluhm Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -89,7 +89,7 @@ __vsyslog_r(int pri, struct syslog_data *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;