X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Ffile_ops.c;h=ba4c2c3a9c533817a3843ea38e110ec3dae74656;hp=d1b529d57efada1399545722745c3873bdf07e5c;hb=fe0848e37f43c8857e90ad4235f34d06af5451ae;hpb=623425931fa2be1d4edf7f9d490620be97695bd5 diff --git a/citadel/file_ops.c b/citadel/file_ops.c index d1b529d57..ba4c2c3a9 100644 --- a/citadel/file_ops.c +++ b/citadel/file_ops.c @@ -634,6 +634,10 @@ void cmd_writ(char *cmdbuf) cprintf("%d You don't have an upload file open.\n", ERROR + RESOURCE_NOT_OPEN); return; } + if (bytes <= 0) { + cprintf("%d you have to specify a value > 0.\n", ERROR + ILLEGAL_VALUE); + return; + } if (bytes > 100000) { bytes = 100000;