diff --git a/src/multibyte/mbrtowc.c b/src/multibyte/mbrtowc.c index ec32385921cae2a998689355093b38c2a35ed354..db803661411519744cb195a802ef52093d0ce4a9 100644 --- a/src/multibyte/mbrtowc.c +++ b/src/multibyte/mbrtowc.c @@ -51,7 +51,7 @@ loop: *(unsigned *)st = c; return -2; ilseq: - *(unsigned *)st = FAILSTATE; + *(unsigned *)st = 0; errno = EILSEQ; return -1; }