projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Allow the READ command to return packets bigger than 1 byte. (ooops!)
[citadel.git]
/
citadel
/
file_ops.c
diff --git
a/citadel/file_ops.c
b/citadel/file_ops.c
index 5d8a787280dae9dc08dde7789a68fdfe744de743..1d1e8705d87ff42274370e38bbed7eed37bb0fe7 100644
(file)
--- a/
citadel/file_ops.c
+++ b/
citadel/file_ops.c
@@
-699,7
+699,7
@@
void cmd_read(char *cmdbuf)
}
fseek(CC->download_fp, start_pos, 0);
-
bytes =
fread(buf, bytes, 1, CC->download_fp);
+ fread(buf, bytes, 1, CC->download_fp);
cprintf("%d %d\n", BINARY_FOLLOWS, bytes);
client_write(buf, bytes);
}