summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio/wind.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-11-19 09:03:45 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2019-11-19 09:03:45 +0100
commit2c9e3861a54e22498fb2e3226defe4393b20b202 (patch)
tree4866436d1b93bc8421956e66eefbd4396763e70a /sys/src/cmd/rio/wind.c
parent37d6ddd8f323224d169b7fa42fa126d5c9b2ffd4 (diff)
rio: fix cons read breakage from previous commit
Diffstat (limited to 'sys/src/cmd/rio/wind.c')
-rw-r--r--sys/src/cmd/rio/wind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/rio/wind.c b/sys/src/cmd/rio/wind.c
index 1026a768e..b583d1360 100644
--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -406,7 +406,7 @@ winctl(void *arg)
t = "notcurrent";
if(w == input)
t = "current";
- pair.ns = snprint(pair.s, pair.ns, "%11d %11d %11d %11d %11s %11s ",
+ pair.ns = snprint(pair.s, pair.ns+1, "%11d %11d %11d %11d %11s %11s ",
w->i->r.min.x, w->i->r.min.y, w->i->r.max.x, w->i->r.max.y, t, s);
send(crm.c2, &pair);
continue;