mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 17:23:02 +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 '>':
|
case '<': case '=': case '>':
|
||||||
/* Escape the second '?' in what would otherwise be
|
/* Escape the second '?' in what would otherwise be
|
||||||
a trigraph. */
|
a trigraph. */
|
||||||
i += 2;
|
|
||||||
c = arg[i + 2];
|
c = arg[i + 2];
|
||||||
|
i += 2;
|
||||||
STORE ('?');
|
STORE ('?');
|
||||||
STORE ('\\');
|
STORE ('\\');
|
||||||
STORE ('?');
|
STORE ('?');
|
||||||
|
|||||||
Reference in New Issue
Block a user