summaryrefslogtreecommitdiff
path: root/misc-utils/setterm.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2006-12-07 00:25:49 +0100
committerKarel Zak <kzak@redhat.com>2006-12-07 00:25:49 +0100
commite8f2641919de90b488ce3788a7795b88311750b5 (patch)
tree68f3732da38ff1b21ec49780d7c830250329fec9 /misc-utils/setterm.c
parent364cda4857f7dd5e2b4e2eb7583a2eaa279ef4ed (diff)
downloadutil-linux-old-e8f2641919de90b488ce3788a7795b88311750b5.tar.gz
Imported from util-linux-2.11m tarball.
Diffstat (limited to 'misc-utils/setterm.c')
-rw-r--r--misc-utils/setterm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc-utils/setterm.c b/misc-utils/setterm.c
index 2e265fc5..435e7e48 100644
--- a/misc-utils/setterm.c
+++ b/misc-utils/setterm.c
@@ -290,10 +290,10 @@ par_color(int argc, char **argv, int *option, int *opt_color, int *bad_arg) {
*opt_color = DEFAULT;
else if (isdigit(argv[0][0]))
*opt_color = atoi(argv[0]);
- else
+ else
*bad_arg = TRUE;
- if(*opt_color < 0 || *opt_color > 7)
+ if(*opt_color < 0 || *opt_color > 9 || *opt_color == 8)
*bad_arg = TRUE;
}
}