1
0
Fork 0
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:
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

@ -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');