diff options
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 2dade05aa..fa268b2cf 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -833,7 +833,7 @@ int ScintillaGTK::TargetAsUTF8(char *text) {  // Translates a nul terminated UTF8 string into the document encoding.  // Return the length of the result in bytes.  int ScintillaGTK::EncodedFromUTF8(char *utf8, char *encoded) { -	int inputLength = lengthForEncode ? lengthForEncode : strlen(utf8); +	int inputLength = (lengthForEncode >= 0) ? lengthForEncode : strlen(utf8);  	if (IsUnicodeMode()) {  		if (encoded) {  			memcpy(encoded, utf8, inputLength); | 
