From 1336419e465c180c938652fadc2aa0b487a6e887 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 7 May 2000 22:00:43 +0000 Subject: Update. * iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting empty input buffer over full output buffer. --- iconv/gconv_simple.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'iconv') diff --git a/iconv/gconv_simple.c b/iconv/gconv_simple.c index 1844f2b838..caee6f36f9 100644 --- a/iconv/gconv_simple.c +++ b/iconv/gconv_simple.c @@ -89,10 +89,10 @@ internal_ucs4_loop (const unsigned char **inptrp, const unsigned char *inend, #endif /* Determine the status. */ - if (*outptrp == outend) - result = __GCONV_FULL_OUTPUT; - else if (*inptrp == inend) + if (*inptrp == inend) result = __GCONV_EMPTY_INPUT; + else if (*outptrp == outend) + result = __GCONV_FULL_OUTPUT; else result = __GCONV_INCOMPLETE_INPUT; -- cgit 1.4.1