(quotearg_buffer_restyled): Fix off-by-two bug in trigraph handling.

This commit is contained in:
Paul Eggert
2002-11-03 07:03:53 +00:00
parent 01cfa69791
commit 9e4c5cb833

View File

@@ -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 ('?');