summary refs log tree commit diff
path: root/wcsmbs/wcrtomb.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/wcrtomb.c')
-rw-r--r--wcsmbs/wcrtomb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/wcsmbs/wcrtomb.c b/wcsmbs/wcrtomb.c
index 375a000072..f7100d4fc7 100644
--- a/wcsmbs/wcrtomb.c
+++ b/wcsmbs/wcrtomb.c
@@ -75,7 +75,7 @@ __wcrtomb (char *s, wchar_t wc, mbstate_t *ps)
     {
       status = DL_CALL_FCT (__wcsmbs_gconv_fcts.tomb->__fct,
 			    (__wcsmbs_gconv_fcts.tomb, &data, NULL, NULL,
-			     data.__outbuf, &dummy, 1, 1));
+			     NULL, &dummy, 1, 1));
 
       if (status == __GCONV_OK || status == __GCONV_EMPTY_INPUT)
 	*data.__outbuf++ = '\0';
@@ -87,8 +87,7 @@ __wcrtomb (char *s, wchar_t wc, mbstate_t *ps)
 
       status = DL_CALL_FCT (__wcsmbs_gconv_fcts.tomb->__fct,
 			    (__wcsmbs_gconv_fcts.tomb, &data, &inbuf,
-			     inbuf + sizeof (wchar_t), data.__outbuf, &dummy,
-			     0, 1));
+			     inbuf + sizeof (wchar_t), NULL, &dummy, 0, 1));
     }
 
   /* There must not be any problems with the conversion but illegal input