diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-12-07 11:36:10 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-12-07 12:05:16 +0200 |
commit | 5c0938830468b5829d3106a34456e85896201d1a (patch) | |
tree | 2de270e2827705c9a2072d1ab320679ee6017fd2 /src | |
parent | aa8d1b17e4b3c9425da865efe54fb621dcea5cd6 (diff) | |
download | pies-5c0938830468b5829d3106a34456e85896201d1a.tar.gz pies-5c0938830468b5829d3106a34456e85896201d1a.tar.bz2 |
Version 1.4.95
* NEWS: Version 1.4.95
* configure.ac: Likewise.
* doc/ctl.texi: Fix formatting of JSON selectors. @deffn is
unable to handle them properly.
* doc/pies.texi: Minor changes.
* src/progman.c (open_redirector): Minor change to avoid
spurious varning.
* src/syslog.c: Assume conservative value instead of unportable
HOST_NAME_MAX.
Diffstat (limited to 'src')
-rw-r--r-- | src/progman.c | 5 | ||||
-rw-r--r-- | src/syslog.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/progman.c b/src/progman.c index d808010..e71d86d 100644 --- a/src/progman.c +++ b/src/progman.c @@ -448,8 +448,8 @@ open_redirector (struct prog *master, int stream, int *fd) { case redir_null: *fd = -1; - return -1; - + break; + case redir_file: *fd = -1; return redirect_to_file (master, stream); @@ -457,6 +457,7 @@ open_redirector (struct prog *master, int stream, int *fd) case redir_syslog: return redirect_to_syslog (master, stream, fd); } + return -1; } diff --git a/src/syslog.c b/src/syslog.c index 7f748d6..36f9473 100644 --- a/src/syslog.c +++ b/src/syslog.c @@ -219,7 +219,7 @@ log_message_in_format (struct log_message_in *msg, pid_t pid) { char tbuf[sizeof ("Jan 1 00:00:00")]; - char hostbuf[HOST_NAME_MAX+1]; + char hostbuf[256]; struct timeval tv; struct tm tm; |