aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2024-04-05 12:37:34 -0500
committerRob Landley <rob@landley.net>2024-04-05 12:37:34 -0500
commitfc0e86b438e813eca267c5a0fd60a4be0792f6bc (patch)
tree45e83a116885e414fc9a357d38159e706bb95ae8
parent2b867151f7ec7029791dae2b088c6243bf15e86d (diff)
downloadtoybox-fc0e86b438e813eca267c5a0fd60a4be0792f6bc.tar.gz
Fix thinko.
-rw-r--r--toys/other/watch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/watch.c b/toys/other/watch.c
index 995aae15..fbd95455 100644
--- a/toys/other/watch.c
+++ b/toys/other/watch.c
@@ -112,7 +112,7 @@ void watch_main(void)
if (pad>0) draw_trim(cmd, -pad, pad);
printf("%c", pad<cmdlen ? '*' : ' ');
if (width) xputs(ss+(width>ctimelen ? 0 : width-1));
- if (yy>=3) xprintf("\r\n");
+ if (height>=3) xprintf("\r\n");
xx = 0;
yy = 2;
}