summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2015-09-09 10:51:00 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2015-09-09 10:51:00 +0000
commitbb767d9a0bee229c17d2403c5007be7cab0a1b5b (patch)
treea07c9091b6c7df879335d85a3e06746db87ee5f4 /lib/libc
parent0f7bec1f1ecf9dceff51936524723d80bbcbe4f5 (diff)
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')
-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;