diff options
| author | Neil Hodgson <nyamatongwe@gmail.com> | 2017-07-23 11:05:25 +1000 | 
|---|---|---|
| committer | Neil Hodgson <nyamatongwe@gmail.com> | 2017-07-23 11:05:25 +1000 | 
| commit | b0a1aaa2eea6ab66939dce401da282938cad263e (patch) | |
| tree | 22f0c3bb461853e95bab89e6cd872beecf98002d /src | |
| parent | 0c89c0354677ebef941e3c71fc703f2f086249ad (diff) | |
| download | scintilla-mirror-b0a1aaa2eea6ab66939dce401da282938cad263e.tar.gz | |
Avoid warning although it appears incorrect.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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<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);  		} | 
