aboutsummaryrefslogtreecommitdiff
path: root/uxd.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-12-23 05:06:12 -0500
committerB. Watson <urchlay@slackware.uk>2024-12-23 05:06:12 -0500
commit35587b5e3614b9f74040730b23acb88c080535b2 (patch)
treeaa428ba3214ea5c3b981e28063b0fbea9c2b53ff /uxd.c
parent8438c8d6e002beed22d714d6120b86166a582255 (diff)
downloaduxd-35587b5e3614b9f74040730b23acb88c080535b2.tar.gz
don't allow >5 digits for -c
Diffstat (limited to 'uxd.c')
-rw-r--r--uxd.c2
1 files changed, 2 insertions, 0 deletions
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) {