13 lines
512 B
Plaintext
13 lines
512 B
Plaintext
$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
|
|
/* 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;
|