Fixed bug in printing readline log message caused by a misleading indentation

This commit is contained in:
Gerhard Rieger 2017-01-15 12:29:26 +01:00
parent 72b05700e4
commit 0fdd9ceb58
2 changed files with 8 additions and 2 deletions

View file

@ -50,6 +50,10 @@ corrections:
Options shut-down and shut-close did not work.
Thanks to Stefan Schimanski for providing a patch.
There was a bug in printing readline log message caused by a misleading
indentation.
Thanks to Paul Wouters for reporting.
porting:
Type conflict between int and sig_atomic_t between declaration and
definition of diag_immediate_type and diag_immediate_exit broke

View file

@ -61,8 +61,10 @@ static int xioopen_readline(int argc, const char *argv[], struct opt *opts,
if ((rw+1)&1) {
strcpy(cp, "readline on stdin for reading"); cp = strchr(cp, '\0');
if ((rw+1)&2)
strcpy(cp, " and "); cp = strchr(cp, '\0');
if ((rw+1)&2) {
strcpy(cp, " and ");
cp = strchr(cp, '\0');
}
}
if ((rw+1)&2) {
strcpy(cp, "stdio for writing"); cp = strchr(cp, '\0');