From 1a3deee2b8de5c869fdc36ddf1a4cf98c5afcb5f Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 13 Feb 2002 15:48:55 +0000 Subject: [PATCH] * Allow the READ command to return packets bigger than 1 byte. (ooops!) --- citadel/ChangeLog | 4 ++++ citadel/file_ops.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 38fd64283..544461cf0 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,7 @@ $Log$ + Revision 590.110 2002/02/13 15:48:55 ajc + * Allow the READ command to return packets bigger than 1 byte. (ooops!) + Revision 590.109 2002/02/12 20:15:25 ajc * Threw in a few more #ifdef's so the client build doesn't barf on non-curses systems @@ -3331,3 +3334,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/file_ops.c b/citadel/file_ops.c index 5d8a78728..1d1e8705d 100644 --- 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); } -- 2.30.2