From 9e4c5cb833494f69288aedd8059d03bfb30e5020 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 3 Nov 2002 07:03:53 +0000 Subject: [PATCH] (quotearg_buffer_restyled): Fix off-by-two bug in trigraph handling. --- lib/quotearg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ('?'); -- 2.50.0