diff options
Diffstat (limited to 'wcsmbs/btowc.c')
-rw-r--r-- | wcsmbs/btowc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wcsmbs/btowc.c b/wcsmbs/btowc.c index bac99e8547..1c6332ee8c 100644 --- a/wcsmbs/btowc.c +++ b/wcsmbs/btowc.c @@ -31,8 +31,8 @@ __btowc (c) { wchar_t result; struct gconv_step_data data; - char inbuf[1]; - const char *inptr = inbuf; + unsigned char inbuf[1]; + const unsigned char *inptr = inbuf; size_t dummy; int status; @@ -42,7 +42,7 @@ __btowc (c) return WEOF; /* Tell where we want the result. */ - data.outbuf = (char *) &result; + data.outbuf = (unsigned char *) &result; data.outbufend = data.outbuf + sizeof (wchar_t); data.invocation_counter = 0; data.internal_use = 1; |