summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-02-05 01:01:55 +1100
committerDamien Miller <djm@mindrot.org>2001-02-05 01:01:55 +1100
commit849e288b8a466c3bd4c050034d9dba0fe442eaa3 (patch)
tree4fd5dcdec9108cbc4c13a8d987984c0b78f4f948
parent6d98656e589e8bd5f57cd9af2e82922b9fb4a481 (diff)
- (djm) Use setvbuf() instead of setlinebuf(). Suggest from stevek@
-rw-r--r--ChangeLog1
-rw-r--r--sftp-int.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9ab110c61..73b4a6973 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
3520010103 3620010103
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;