aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2017-07-23 11:05:25 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2017-07-23 11:05:25 +1000
commita4d5f8962bbdcf1ef6f95aad85a3bd47dc0fa6fe (patch)
tree76f99ce8ac2ca5433c7f12bd445d7073b3e6d455 /src
parent87d05f873c285a6189c8a97b0ed714ee292f986b (diff)
downloadscintilla-mirror-a4d5f8962bbdcf1ef6f95aad85a3bd47dc0fa6fe.tar.gz
Backport: Avoid warning although it appears incorrect.
Backport of changeset 6359:4a203fb1684e.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
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<char>(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);
}