From: Paul Eggert Date: Sun, 3 Nov 2002 07:03:53 +0000 (+0000) Subject: (quotearg_buffer_restyled): Fix off-by-two bug in trigraph handling. X-Git-Tag: BISON-1_875~368 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/9e4c5cb833494f69288aedd8059d03bfb30e5020?ds=inline (quotearg_buffer_restyled): Fix off-by-two bug in trigraph handling. --- diff --git a/lib/quotearg.c b/lib/quotearg.c index 79929e7c..750426c2 100644 --- a/lib/quotearg.c +++ b/lib/quotearg.c @@ -330,8 +330,8 @@ quotearg_buffer_restyled (char *buffer, size_t buffersize, case '<': case '=': case '>': /* Escape the second '?' in what would otherwise be a trigraph. */ - i += 2; c = arg[i + 2]; + i += 2; STORE ('?'); STORE ('\\'); STORE ('?');