From 35587b5e3614b9f74040730b23acb88c080535b2 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 23 Dec 2024 05:06:12 -0500 Subject: don't allow >5 digits for -c --- uxd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'uxd.c') diff --git a/uxd.c b/uxd.c index 28abd4c..e5317ce 100644 --- a/uxd.c +++ b/uxd.c @@ -231,6 +231,8 @@ void parse_colors(char *arg) { if(!arg[4]) return; check_color(arg[4]); bad_color = arg[4] - '0'; + + if(arg[5]) color_error(); } void number_err(int opt) { -- cgit v1.2.3