mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
(quotearg_buffer_restyled): Fix off-by-two bug in trigraph handling.
This commit is contained in:
@@ -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 ('?');
|
||||
|
||||
Reference in New Issue
Block a user