* Allow the READ command to return packets bigger than 1 byte. (ooops!)
authorArt Cancro <ajc@citadel.org>
Wed, 13 Feb 2002 15:48:55 +0000 (15:48 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 13 Feb 2002 15:48:55 +0000 (15:48 +0000)
citadel/ChangeLog
citadel/file_ops.c

index 38fd64283e77e3c8df8bb8c5f7b35d3e33ce74cb..544461cf03c38a7849b82d2c15610da5dae8fe34 100644 (file)
@@ -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 <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import 
+
index 5d8a787280dae9dc08dde7789a68fdfe744de743..1d1e8705d87ff42274370e38bbed7eed37bb0fe7 100644 (file)
@@ -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);
 }