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 f050c098..bdb470b1 100644
--- a/sftp-int.c
+++ b/sftp-int.c
@@ -560,8 +560,8 @@ interactive_loop(int fd_in, int fd_out)
if (pwd == NULL)
fatal("Need cwd");
- setlinebuf(stdout);
- setlinebuf(stdin);
+ setvbuf(stdout, (char *)NULL, _IOLBF, 0);
+ setvbuf(stdin, (char *)NULL, _IOLBF, 0);
for(;;) {
char *cp;