char *outbuf = 0;
size_t outbufferlength;
size_t result;
- char *ip ;
char *op ;
size_t inbytes = 0;
size_t outbytes ;
outbuf = xmalloc(outbufferlength);
op = outbuf;
- ip = (char *) text;
outbytes = outbufferlength;
inbytes = length;
do {
- result = iconv(convertor[how], &ip, &inbytes,
+ result = iconv(convertor[how], &text, &inbytes,
&op, &outbytes);
if ( -1 == result )
{
*op++ = fallbackchar;
outbytes--;
- ip++;
+ text++;
inbytes--;
break;
}
outbufferlength <<= 1;
outbuf = xmalloc(outbufferlength);
op = outbuf;
- ip = (char *) text;
outbytes = outbufferlength;
inbytes = length;
break;