2008-05-28 16:03:13 -04:00
|
|
|
$OpenBSD: patch-lib_iconv_c,v 1.3 2008/05/28 20:03:13 naddy Exp $
|
|
|
|
--- lib/iconv.c.orig Mon Apr 23 23:24:57 2007
|
|
|
|
+++ lib/iconv.c Wed May 21 17:48:40 2008
|
|
|
|
@@ -431,7 +431,7 @@ iconv_t iconv_open (const char* tocode, const char* fr
|
2005-04-16 17:10:22 -04:00
|
|
|
/* Initialize additional fields. */
|
|
|
|
if (from_wchar != to_wchar) {
|
|
|
|
struct wchar_conv_struct * wcd = (struct wchar_conv_struct *) cd;
|
|
|
|
- memset(&wcd->state,'\0',sizeof(mbstate_t));
|
|
|
|
+ memset(&wcd->state,'\0',sizeof wcd->state);
|
|
|
|
}
|
|
|
|
/* Done. */
|
|
|
|
return (iconv_t)cd;
|