diff options
Diffstat (limited to 'iconvdata/utf-32.c')
-rw-r--r-- | iconvdata/utf-32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/iconvdata/utf-32.c b/iconvdata/utf-32.c index 01f4b88..cc02651 100644 --- a/iconvdata/utf-32.c +++ b/iconvdata/utf-32.c @@ -49,7 +49,8 @@ { \ /* We have to find out which byte order the file is encoded in. */ \ if (inptr + 4 > inend) \ - return __GCONV_EMPTY_INPUT; \ + return (inptr == inend \ + ? __GCONV_EMPTY_INPUT : __GCONV_INCOMPLETE_INPUT); \ \ if (get32u (inptr) == BOM) \ /* Simply ignore the BOM character. */ \ |