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: http://review.tizen.org/git/?a=commitdiff_plain;h=9e4c5cb833494f69288aedd8059d03bfb30e5020;p=platform%2Fupstream%2Fbison.git (quotearg_buffer_restyled): Fix off-by-two bug in trigraph handling. --- diff --git a/lib/quotearg.c b/lib/quotearg.c index 79929e7..750426c 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 ('?');