commit ea20f48ed0426c9a0ce1de2aadf3f426dd9f12e2
parent 7e28da7db3ecc44eb32aeb2beebed1fe77ffd37f
Author: Sander van Dijk <sander@wmii.de>
Date: Thu, 2 Mar 2006 15:10:04 +0100
allow setting capacity to 0 (==infinity)
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd/wm/fs.c b/cmd/wm/fs.c
@@ -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;