projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* file_ops.c: cmd_writ(): Add an unbuffer_output() that I forgot.
[citadel.git]
/
citadel
/
file_ops.c
diff --git
a/citadel/file_ops.c
b/citadel/file_ops.c
index 1f94f23e931acb8eecff69f36e53e009197ae24d..2430bec35a421a0f79d9077402a0d5353bc84e7c 100644
(file)
--- a/
citadel/file_ops.c
+++ b/
citadel/file_ops.c
@@
-712,6
+712,8
@@
void cmd_writ(char *cmdbuf)
int bytes;
char buf[4096];
+ unbuffer_output();
+
bytes = extract_int(cmdbuf, 0);
if (CC->upload_fp == NULL) {
@@
-726,7
+728,6
@@
void cmd_writ(char *cmdbuf)
}
cprintf("%d %d\n", SEND_BINARY, bytes);
- flush_output();
client_read(buf, bytes);
fwrite(buf, bytes, 1, CC->upload_fp);
}