From 4744d65752f4d56d0383150327b7f3331763a046 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 25 Oct 2021 14:01:55 -0400 Subject: Bounds check color indexes --- bin/shotty.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/shotty.l') diff --git a/bin/shotty.l b/bin/shotty.l index 8018d785..577696bb 100644 --- a/bin/shotty.l +++ b/bin/shotty.l @@ -498,7 +498,7 @@ static void span(const struct Cell *prev, const struct Cell *cell) { if (attr & Bold) printf("font-weight:bold;"); if (attr & Italic) printf("font-style:italic;"); if (attr & Underline) printf("text-decoration:underline;"); - if (colors) { + if (colors && bg < 256 && fg < 256) { printf( "background-color:#%06X;color:#%06X;", Palette[bg], Palette[fg] -- cgit 1.4.1 input type='submit' value='switch'/> dontfiles
summary refs log tree commit diff
path: root/doc/zlib/adler32.3 (unfollow)
Commit message (Expand)Author
2022-06-02Clean up parsing a littleJune McEnroe
2022-06-02Don't duplicate path stringJune McEnroe
2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe
2022-06-02Add initial working version of qfJune McEnroe
2022-05-29Set prompt for okshJune McEnroe