From d35c21587a4139031c077fd122252217a4713681 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 25 Jan 2001 23:49:09 +0000 Subject: Commit Larry Doolittle's buffers-on-stack/buffers-via-malloc patch. -Erik --- sysklogd/syslogd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysklogd') diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 114516e..972fda1 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -209,7 +209,7 @@ static void domark(int sig) static const int BUFSIZE = 1023; static int serveConnection (int conn) { - char buf[ BUFSIZE + 1 ]; + RESERVE_BB_BUFFER(buf, BUFSIZE + 1); int n_read; while ((n_read = read (conn, buf, BUFSIZE )) > 0) { @@ -296,7 +296,7 @@ static void doSyslogd (void) int sock_fd; fd_set fds; - char lfile[BUFSIZ]; + RESERVE_BB_BUFFER(lfile, BUFSIZ); /* Set up signal handlers. */ signal (SIGINT, quit_signal); -- cgit v1.1