* Allow the READ command to return packets bigger than 1 byte. (ooops!)
[citadel.git] / citadel / file_ops.c
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);
 }