From b0a1aaa2eea6ab66939dce401da282938cad263e Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Sun, 23 Jul 2017 11:05:25 +1000 Subject: Avoid warning although it appears incorrect. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 740e230f8..93a157061 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -238,7 +238,7 @@ void Editor::SetRepresentations() { if (IsUnicodeMode()) { for (int k=0x80; k < 0x100; k++) { char hiByte[2] = { static_cast(k), 0 }; - char hexits[4]; + char hexits[5]; // Really only needs 4 but that causes warning from gcc 7.1 sprintf(hexits, "x%2X", k); reprs.SetRepresentation(hiByte, hexits); } -- cgit v1.2.3