aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs/wcsrtombs.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/wcsrtombs.c')
-rw-r--r--wcsmbs/wcsrtombs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wcsmbs/wcsrtombs.c b/wcsmbs/wcsrtombs.c
index dda115d..8b444ed 100644
--- a/wcsmbs/wcsrtombs.c
+++ b/wcsmbs/wcsrtombs.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996,1997,1998,1999,2000,2002 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2000, 2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.org>, 1996.
@@ -66,7 +66,7 @@ __wcsrtombs (dst, src, len, ps)
mbstate_t temp_state;
unsigned char buf[256]; /* Just an arbitrary value. */
const wchar_t *srcend = *src + __wcslen (*src) + 1;
- const wchar_t *inbuf = *src;
+ const unsigned char *inbuf = (const unsigned char *) *src;
size_t dummy;
temp_state = *data.__statep;
@@ -80,7 +80,7 @@ __wcsrtombs (dst, src, len, ps)
data.__outbuf = buf;
status = DL_CALL_FCT (tomb->__fct,
- (tomb, &data, (const unsigned char **) &inbuf,
+ (tomb, &data, &inbuf,
(const unsigned char *) srcend, NULL,
&dummy, 0, 1));