proceeded

This commit is contained in:
Anselm R. Garbe 2006-02-28 16:31:18 +01:00
parent 8b51412f04
commit 5d318d6a6b
2 changed files with 3 additions and 3 deletions

View File

@ -1216,7 +1216,7 @@ 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 1..0xffff";
page[i1]->area[i2]->maxclient = i;
@ -1227,7 +1227,7 @@ 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, 1, COL_MODE_LAST, &err);
if(err)
return "max value out of range 1..0xffff";
page[i1]->area[i2]->mode = i;

View File

@ -61,7 +61,7 @@ typedef struct Area Area;
typedef struct Page Page;
typedef struct Client Client;
typedef enum { COL_MAX, COL_EQUAL, COL_STACK } ColumnMode;
typedef enum { COL_MAX, COL_EQUAL, COL_STACK, COL_MODE_LAST } ColumnMode;
struct Area {
unsigned short id;