summaryrefslogtreecommitdiffstats
path: root/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-10-04 20:01:10 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-10-04 20:01:10 +0000
commit5c54e0b7fd2c4430219b01b059fb694d363a657d (patch)
treebe993fa2f1e3277f6a402727e155807136267b2e /server.c
parent032ee1b880de2c1c97c557e44456eb9294b9ed13 (diff)
Don't accept UINT_MAX as size if no clients/sessions.
Diffstat (limited to 'server.c')
-rw-r--r--server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/server.c b/server.c
index 8797d2d6..416f9fe1 100644
--- a/server.c
+++ b/server.c
@@ -1,4 +1,4 @@
-/* $Id: server.c,v 1.24 2007-10-04 19:03:52 nicm Exp $ */
+/* $Id: server.c,v 1.25 2007-10-04 20:01:10 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -282,7 +282,10 @@ server_accept_client(int srv_fd)
c->fd = client_fd;
c->in = buffer_create(BUFSIZ);
c->out = buffer_create(BUFSIZ);
+
c->session = NULL;
+ c->sx = 80;
+ c->sy = 25;
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
if (ARRAY_ITEM(&clients, i) == NULL) {