diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-23 09:36:19 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-23 09:36:19 +0000 |
commit | 25e94a05264809294417aeebc63e9d64c487dce1 (patch) | |
tree | 4cd3b2f11f52633002372500315e75047848a9c2 /server-msg.c | |
parent | 98e7e79e4c52821270e0670273a9149bcb6e5a4c (diff) |
List client command.
Diffstat (limited to 'server-msg.c')
-rw-r--r-- | server-msg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server-msg.c b/server-msg.c index 4b9e34b9..7b696ff5 100644 --- a/server-msg.c +++ b/server-msg.c @@ -1,4 +1,4 @@ -/* $Id: server-msg.c,v 1.27 2007-10-12 17:50:33 nicm Exp $ */ +/* $Id: server-msg.c,v 1.28 2007-10-23 09:36:19 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -160,6 +160,9 @@ server_msg_fn_identify(struct hdr *hdr, struct client *c) c->sx = data.sx; c->sy = data.sy; + data.tty[(sizeof data.tty) - 1] = '\0'; + c->tty = xstrdup(data.tty); + c->flags |= CLIENT_TERMINAL; return (0); |