diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-11-25 21:45:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-11-25 21:45:54 +0000 |
commit | 4a4229213a59016e35a7abdac5cea91d4fcbb178 (patch) | |
tree | a40f47f99553083ad9658ea10dd64cf875514c7f /iconv/gconv.c | |
parent | Update. (diff) | |
download | glibc-4a4229213a59016e35a7abdac5cea91d4fcbb178.tar.gz glibc-4a4229213a59016e35a7abdac5cea91d4fcbb178.tar.bz2 glibc-4a4229213a59016e35a7abdac5cea91d4fcbb178.zip |
Update.
1999-11-25 Ulrich Drepper <drepper@cygnus.com>
* iconv/gconv.c (__gconv): Always initialize
cd->__data[last_step].__outbuf and cd->__data[last_step].__outbufend.
* iconvdata/iso-2022-kr.c (EMIT_SHIFT_TO_INIT): Update number of
written bytes.
* iconvdata/iso-2022-jp.c: Likewise.
Diffstat (limited to 'iconv/gconv.c')
-rw-r--r-- | iconv/gconv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/iconv/gconv.c b/iconv/gconv.c index f51af4a4d8..6e3080b0e9 100644 --- a/iconv/gconv.c +++ b/iconv/gconv.c @@ -39,6 +39,9 @@ __gconv (__gconv_t cd, const unsigned char **inbuf, assert (converted != NULL); *converted = 0; + cd->__data[last_step].__outbuf = *outbuf; + cd->__data[last_step].__outbufend = outbufend; + if (inbuf == NULL || *inbuf == NULL) /* We just flush. */ result = DL_CALL_FCT (cd->__steps->__fct, @@ -49,8 +52,6 @@ __gconv (__gconv_t cd, const unsigned char **inbuf, const unsigned char *last_start; assert (outbuf != NULL && *outbuf != NULL); - cd->__data[last_step].__outbuf = *outbuf; - cd->__data[last_step].__outbufend = outbufend; do { |