2009-01-02 Ulrich Drepper <drepper@redhat.com>
+ * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Create temporary state object
+ if no output is written.
+
* version.h: Bump to 2.10 development.
* posix/getconf.c: Update copyright year.
/* We have to handle DST == NULL special. */
if (dst == NULL)
{
+ mbstate_t temp_state;
unsigned char buf[256]; /* Just an arbitrary value. */
const unsigned char *inbuf = (const unsigned char *) *src;
size_t dummy;
+ temp_state = *data.__statep;
+ data.__statep = &temp_state;
+
result = 0;
data.__outbufend = buf + sizeof (buf);