mirror of
https://repo.or.cz/socat.git
synced 2025-07-12 14:43:24 +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
|
@ -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…
Add table
Add a link
Reference in a new issue