int
internal_function
-__gconv (gconv_t cd, const unsigned char **inbuf, const unsigned char *inbufend,
- unsigned char **outbuf, unsigned char *outbufend, size_t *converted)
+__gconv (gconv_t cd, const unsigned char **inbuf,
+ const unsigned char *inbufend, unsigned char **outbuf,
+ unsigned char *outbufend, size_t *converted)
{
size_t last_step = cd->nsteps - 1;
int result;
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 = _CALL_DL_FCT (cd->steps->fct,
const unsigned char *last_start;
assert (outbuf != NULL && *outbuf != NULL);
- cd->data[last_step].outbuf = *outbuf;
- cd->data[last_step].outbufend = outbufend;
do
{