diff --git a/CHANGES b/CHANGES index 2d104ac..5aee804 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/xio-readline.c b/xio-readline.c index 3f1b015..24ee757 100644 --- a/xio-readline.c +++ b/xio-readline.c @@ -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');