diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-29 19:53:39 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-09-29 19:53:39 +0000 |
commit | 86bf944afc65512290190993e2c07a2dfe97f25d (patch) | |
tree | 221ef9aee2216c30429305302d99a6c4cc244044 /server-msg.c | |
parent | 34eb15461730bc88a41f6d6a166c6380aad14356 (diff) |
Show the right windows in the list.
Diffstat (limited to 'server-msg.c')
-rw-r--r-- | server-msg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server-msg.c b/server-msg.c index d52e0812..08c5918a 100644 --- a/server-msg.c +++ b/server-msg.c @@ -1,4 +1,4 @@ -/* $Id: server-msg.c,v 1.10 2007-09-29 14:57:07 nicm Exp $ */ +/* $Id: server-msg.c,v 1.11 2007-09-29 19:53:39 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -361,14 +361,14 @@ server_msg_fn_windows(struct hdr *hdr, struct client *c) data.windows = 0; for (i = 0; i < ARRAY_LENGTH(&s->windows); i++) { - if (ARRAY_ITEM(&windows, i) != NULL) + if (ARRAY_ITEM(&s->windows, i) != NULL) data.windows++; } server_write_client2(c, MSG_WINDOWS, &data, sizeof data, NULL, data.windows * sizeof entry); - for (i = 0; i < ARRAY_LENGTH(&windows); i++) { - w = ARRAY_ITEM(&windows, i); + for (i = 0; i < ARRAY_LENGTH(&s->windows); i++) { + w = ARRAY_ITEM(&s->windows, i); if (w == NULL) continue; entry.idx = i; |