From 18509f8422004b862b46916a9ec759ed50acec91 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 20 Feb 2006 19:54:17 +0000 Subject: [PATCH] Alain Guibert points out that ESC]P sequences were erroneously accepting 'G' as a hex digit. (The _first_ digit of the sequence intentionally goes up further than F, but the remaining ones shouldn't have.) [originally from svn r6581] --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index d23f0544..db61a1ac 100644 --- a/terminal.c +++ b/terminal.c @@ -4093,7 +4093,7 @@ static void term_out(Terminal *term) break; case SEEN_OSC_P: { - int max = (term->osc_strlen == 0 ? 21 : 16); + int max = (term->osc_strlen == 0 ? 21 : 15); int val; if ((int)c >= '0' && (int)c <= '9') val = c - '0';