]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Alain Guibert points out that ESC]P sequences were erroneously
authorSimon Tatham <anakin@pobox.com>
Mon, 20 Feb 2006 19:54:17 +0000 (19:54 +0000)
committerSimon Tatham <anakin@pobox.com>
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.)

[originally from svn r6581]

terminal.c

index d23f0544078707d3f5c96dd3cc4e2671d7b6c98a..db61a1ac3c93ea52459b404f25a18733cd94b294 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';