allow setting capacity to 0 (==infinity)

This commit is contained in:
Sander van Dijk 2006-03-02 15:10:04 +01:00
parent 7e28da7db3
commit ea20f48ed0

View File

@ -1187,9 +1187,9 @@ xwrite(IXPConn *c, Fcall *fcall)
return Enofile;
memcpy(buf, fcall->data, fcall->count);
buf[fcall->count] = 0;
i = cext_strtonum(buf, 1, 0xffff, &err);
i = cext_strtonum(buf, 0, 0xffff, &err);
if(err)
return "max value out of range 0x0001..0xffff";
return "max value out of range 0x0000..0xffff";
page[i1]->area[i2]->capacity = i;
/* TODO: detach to many clients/attach */
break;