diff options
author | B. Watson <urchlay@slackware.uk> | 2024-12-23 05:06:12 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-12-23 05:06:12 -0500 |
commit | 35587b5e3614b9f74040730b23acb88c080535b2 (patch) | |
tree | aa428ba3214ea5c3b981e28063b0fbea9c2b53ff | |
parent | 8438c8d6e002beed22d714d6120b86166a582255 (diff) | |
download | uxd-35587b5e3614b9f74040730b23acb88c080535b2.tar.gz |
don't allow >5 digits for -c
-rw-r--r-- | uxd.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |