X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Ffile_ops.c;fp=citadel%2Ffile_ops.c;h=8491948925a970546bb146e3a6040a62fba8964d;hb=a4e2ade5c12e0686da445bdfe92b05c3e567ccd7;hp=460e2a85b462df566385f4211d44f983d8b6d52e;hpb=99f5a2324115920e21e153e77ef369dc053299c7;p=citadel.git diff --git a/citadel/file_ops.c b/citadel/file_ops.c index 460e2a85b..849194892 100644 --- a/citadel/file_ops.c +++ b/citadel/file_ops.c @@ -689,7 +689,9 @@ void cmd_writ(char *cmdbuf) } if (bytes > 100000) { - bytes = 100000; + cprintf("%d You may not write more than 100000 bytes.\n", + ERROR + TOO_BIG); + return; } cprintf("%d %d\n", SEND_BINARY, bytes);