summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b90841e)
mbrtowc truncates n to unsigned int when storing its copy.
If n > UINT_MAX and the locale is not POSIX, the function will
return a wrong value greater than UINT_MAX on the success path.
static unsigned internal_state;
unsigned c;
const unsigned char *s = (const void *)src;
static unsigned internal_state;
unsigned c;
const unsigned char *s = (const void *)src;
wchar_t dummy;
if (!st) st = (void *)&internal_state;
wchar_t dummy;
if (!st) st = (void *)&internal_state;