--- src/lib/libc/stdio/snprintf.c 2005/07/23 23:14:44 1.6 +++ src/lib/libc/stdio/snprintf.c 2006/03/02 18:05:30 1.7 @@ -67,6 +67,7 @@ snprintf(char *str, size_t n, char const f.fl_mutex = PTHREAD_MUTEX_INITIALIZER; f.fl_owner = NULL; f.fl_count = 0; + memset(WCIO_GET(&f), 0, sizeof(struct wchar_io_data)); ret = __vfprintf(&f, fmt, ap); /* Use unlocked __vfprintf */ if (on > 0) *f.pub._p = '\0';