summaryrefslogtreecommitdiff
path: root/sftp-int.c
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 /sftp-int.c
parent6d98656e589e8bd5f57cd9af2e82922b9fb4a481 (diff)
- (djm) Use setvbuf() instead of setlinebuf(). Suggest from stevek@
Diffstat (limited to 'sftp-int.c')
-rw-r--r--sftp-int.c4
1 files changed, 2 insertions, 2 deletions
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;