diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-04 20:01:10 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-04 20:01:10 +0000 |
commit | 5c54e0b7fd2c4430219b01b059fb694d363a657d (patch) | |
tree | be993fa2f1e3277f6a402727e155807136267b2e /server.c | |
parent | 032ee1b880de2c1c97c557e44456eb9294b9ed13 (diff) |
Don't accept UINT_MAX as size if no clients/sessions.
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) { |