mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 15:32:35 +00:00
Fixed bug in printing readline log message caused by a misleading indentation
This commit is contained in:
parent
72b05700e4
commit
0fdd9ceb58
2 changed files with 8 additions and 2 deletions
4
CHANGES
4
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
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue