freddy38510
Member
Thanks Deank, i wasn't sure if i'm wrong or not.Yes, that's exactly what is needed.
@bguerville: I didn't use libc.c from wMM. I added to webMAN's libc.c the external imports (but not as #defines).
The only counterpart by doing that is that this entry in ntfs_log_debug will not be created when needed. That's not a big deal i think.
Code:
#ifdef HAVE_MBSINIT
/* Make sure we are back in the initial state. */
if (!mbsinit(&mbstate)) {
ntfs_log_debug("Eeek. mbstate not in initial state!\n");
errno = EILSEQ;
goto err_out;
}
#endif
But this could lead to some issues ?
Code:
/* Now write the NULL character. */
mbs[o] = '\0';
if (*outs != mbs)
*outs = mbs;
return o;
err_out:
if (mbs != *outs) {
int eo = errno;
free(mbs);
errno = eo;
}