diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | sftp-int.c | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -31,6 +31,7 @@ | |||
31 | - (djm) Makefile.in fixes | 31 | - (djm) Makefile.in fixes |
32 | - (stevesk) add mysignal() wrapper and use it for the protocol 2 | 32 | - (stevesk) add mysignal() wrapper and use it for the protocol 2 |
33 | SIGCHLD handler. | 33 | SIGCHLD handler. |
34 | - (djm) Use setvbuf() instead of setlinebuf(). Suggest from stevek@ | ||
34 | 35 | ||
35 | 20010103 | 36 | 20010103 |
36 | - (bal) Cygwin clean up by Corinna Vinschen <vinschen@redhat.com> | 37 | - (bal) Cygwin clean up by Corinna Vinschen <vinschen@redhat.com> |
diff --git a/sftp-int.c b/sftp-int.c index f050c098e..bdb470b1c 100644 --- a/sftp-int.c +++ b/sftp-int.c | |||
@@ -560,8 +560,8 @@ interactive_loop(int fd_in, int fd_out) | |||
560 | if (pwd == NULL) | 560 | if (pwd == NULL) |
561 | fatal("Need cwd"); | 561 | fatal("Need cwd"); |
562 | 562 | ||
563 | setlinebuf(stdout); | 563 | setvbuf(stdout, (char *)NULL, _IOLBF, 0); |
564 | setlinebuf(stdin); | 564 | setvbuf(stdin, (char *)NULL, _IOLBF, 0); |
565 | 565 | ||
566 | for(;;) { | 566 | for(;;) { |
567 | char *cp; | 567 | char *cp; |