Alain Guibert points out that ESC]P sequences were erroneously
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 20 Feb 2006 19:54:17 +0000 (19:54 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 20 Feb 2006 19:54:17 +0000 (19:54 +0000)
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.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@6581 cda61777-01e9-0310-a592-d414129be87e

terminal.c

index d23f054..db61a1a 100644 (file)
@@ -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';