summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/mbrtowc.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-01-21 20:09:16 +0000
committerJeff Johnston <jjohnstn@redhat.com>2004-01-21 20:09:16 +0000
commit7d4be1efd53045983acf1d00041e70086d2c029f (patch)
tree4cdad2387f6d331569ee13de4c171122bb6cb65e /newlib/libc/stdlib/mbrtowc.c
parenta1dcf5d848c38877dad8c76bc295811d25dbf1d8 (diff)
downloadcygnal-7d4be1efd53045983acf1d00041e70086d2c029f.tar.gz
cygnal-7d4be1efd53045983acf1d00041e70086d2c029f.tar.bz2
cygnal-7d4be1efd53045983acf1d00041e70086d2c029f.zip
2004-01-21 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/mbrtowc.c (_mbrtowc_r): Fix case where s is null pointer to match C99 spec. * libc/stdlib/mbsrtowcs.c (_mbsrtowc_r): Fix to ignore len when dst is NULL. Also fix to not alter src pointer when dst is NULL and call _mbrtowc_r instead of _mbtowc_r. * libc/stdlib/wcsrtombs.c (_wcsrtombs_r): Call _wcrtomb_r instead of _wctomb_r.
Diffstat (limited to 'newlib/libc/stdlib/mbrtowc.c')
-rw-r--r--newlib/libc/stdlib/mbrtowc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/mbrtowc.c b/newlib/libc/stdlib/mbrtowc.c
index 6bf20877c..3a9659243 100644
--- a/newlib/libc/stdlib/mbrtowc.c
+++ b/newlib/libc/stdlib/mbrtowc.c
@@ -24,7 +24,7 @@ _DEFUN (_mbrtowc_r, (ptr, pwc, s, n, ps),
#endif
if (s == NULL)
- retval = _mbtowc_r (ptr, pwc, "", 1, ps);
+ retval = _mbtowc_r (ptr, NULL, "", 1, ps);
else
retval = _mbtowc_r (ptr, pwc, s, n, ps);