aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/androidterm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/androidterm.c b/src/androidterm.c
index 6ae9a676f3c..730c832bb5b 100644
--- a/src/androidterm.c
+++ b/src/androidterm.c
@@ -5230,11 +5230,11 @@ android_text_to_string (JNIEnv *env, char *buffer, ptrdiff_t n,
5230 surrogate pairs. 5230 surrogate pairs.
5231 5231
5232 The hack used by Emacs is to simply replace each multibyte 5232 The hack used by Emacs is to simply replace each multibyte
5233 character that doesn't fit in a jchar with the NULL 5233 character that doesn't fit in a jchar with the Unicode
5234 character. */ 5234 replacement character. */
5235 5235
5236 if (encoded >= 65536) 5236 if (encoded >= 65536)
5237 encoded = 0; 5237 encoded = 0xfffd;
5238 5238
5239 utf16[index++] = encoded; 5239 utf16[index++] = encoded;
5240 buffer += BYTES_BY_CHAR_HEAD (*buffer); 5240 buffer += BYTES_BY_CHAR_HEAD (*buffer);