From a4d5f8962bbdcf1ef6f95aad85a3bd47dc0fa6fe Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Sun, 23 Jul 2017 11:05:25 +1000 Subject: Backport: Avoid warning although it appears incorrect. Backport of changeset 6359:4a203fb1684e. --- 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 a645478e0..ec6651782 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