Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-12-19 20:06:19 +0300
committerCorinna Vinschen <corinna@vinschen.de>2007-12-19 20:06:19 +0300
commit478df8bb912080e5b1d6aa39fb8a58cddcfc6567 (patch)
tree365ff00995466fab49112da5b071df87f71abacc /newlib/libc/stdio
parentfcd436325b687545f9447f6853cbce4d1904461b (diff)
* libc/stdio/vfprintf.c (_VFPRINTF_R): Use correct pointer in call to
_wcsrtombs_r.
Diffstat (limited to 'newlib/libc/stdio')
-rw-r--r--newlib/libc/stdio/vfprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c
index 6746e9ede..e9c7c9e1a 100644
--- a/newlib/libc/stdio/vfprintf.c
+++ b/newlib/libc/stdio/vfprintf.c
@@ -1095,8 +1095,8 @@ reswitch: switch (ch) {
/* Convert widechar string to multibyte string. */
memset ((_PTR)&ps, '\0', sizeof (mbstate_t));
- if (_wcsrtombs_r (data, malloc_buf,
- &wcp, size, &ps) != size) {
+ if (_wcsrtombs_r (data, cp, &wcp, size, &ps)
+ != size) {
fp->_flags |= __SERR;
goto error;
}