From bf2a6f786502026ce4229bc84a6a22e5e55a7c13 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 6 Dec 2020 14:44:23 +0100 Subject: [PATCH] rio: use libdraw's badrect() to exclude some extreme cases in goodrect() --- sys/src/cmd/rio/wctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/rio/wctl.c b/sys/src/cmd/rio/wctl.c index 22f7b501c..bef98fda9 100644 --- a/sys/src/cmd/rio/wctl.c +++ b/sys/src/cmd/rio/wctl.c @@ -88,7 +88,7 @@ static char *params[] = { int goodrect(Rectangle r) { - if(!eqrect(canonrect(r), r)) + if(badrect(r) || !eqrect(canonrect(r), r)) return 0; /* reasonable sizes only please */ if(Dx(r) > BIG*Dx(screen->r))