about summary refs log tree commit diff
path: root/iconvdata/utf-16.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconvdata/utf-16.c')
-rw-r--r--iconvdata/utf-16.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iconvdata/utf-16.c b/iconvdata/utf-16.c
index b0b9c47896..a7a01a8302 100644
--- a/iconvdata/utf-16.c
+++ b/iconvdata/utf-16.c
@@ -49,7 +49,7 @@
       if (data->__invocation_counter == 0)				      \
 	{								      \
 	  /* We have to find out which byte order the file is encoded in.  */ \
-	  if (inptr + 2 > inbufend)					      \
+	  if (inptr + 2 > inend)					      \
 	    return __GCONV_EMPTY_INPUT;					      \
 									      \
 	  if (get16u (inptr) == BOM)					      \