/* Terminate the string */
if (to == CH_UCS2 && destlen-o_len >= 2) {
- *outbuf++ = 0;
- *outbuf++ = 0;
+ *(++outbuf) = 0;
+ *(++outbuf) = 0;
}
else if ( destlen-o_len > 0)
- *outbuf++ = 0;
+ *(++outbuf) = 0;
return destlen-o_len;
}
/* Terminate the string */
if (to == CH_UCS2 && destlen-o_len >= 2) {
- *outbuf++ = 0;
- *outbuf++ = 0;
+ *(++outbuf) = 0;
+ *outbuf = 0;
*dest = (char *)realloc(ob,destlen+2);
}
else if ( destlen-o_len > 0) {
- *outbuf++ = 0;
+ *(++outbuf) = 0;
*dest = (char *)realloc(ob,destlen+1);
}
SAFE_FREE(buf_save);
buflen = 0;
i_len -= 2;
+ inbuf += 2;
if (flags) *flags |= CONV_REQESCAPE;
if ( i_len > 0)
goto conversion_loop;