From ea20f48ed0426c9a0ce1de2aadf3f426dd9f12e2 Mon Sep 17 00:00:00 2001 From: Sander van Dijk Date: Thu, 2 Mar 2006 15:10:04 +0100 Subject: [PATCH] allow setting capacity to 0 (==infinity) --- cmd/wm/fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/wm/fs.c b/cmd/wm/fs.c index f06a0616..68c9e593 100644 --- 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;