22 lines
921 B
Plaintext
22 lines
921 B
Plaintext
$OpenBSD: patch-src_imap_c,v 1.1 2003/01/17 12:04:28 couderc Exp $
|
|
--- src/imap.c.orig Fri Jan 17 13:44:39 2003
|
|
+++ src/imap.c Fri Jan 17 13:46:52 2003
|
|
@@ -2922,7 +2922,7 @@ static gchar *imap_modified_utf7_to_loca
|
|
to_len = strlen(mutf7_str) * 5;
|
|
to_p = to_str = g_malloc(to_len + 1);
|
|
|
|
- if (iconv(cd, &norm_utf7_p, &norm_utf7_len, &to_p, &to_len) == -1) {
|
|
+ if (iconv(cd, (const char **) &norm_utf7_p, &norm_utf7_len, &to_p, &to_len) == -1) {
|
|
g_warning(_("iconv cannot convert UTF-7 to %s\n"),
|
|
conv_get_current_charset_str());
|
|
g_string_free(norm_utf7, TRUE);
|
|
@@ -2988,7 +2988,7 @@ static gchar *imap_locale_to_modified_ut
|
|
mblen++)
|
|
;
|
|
from_len -= mblen;
|
|
- if (iconv(cd, &from_tmp, &mblen,
|
|
+ if (iconv(cd, (const char **) &from_tmp, &mblen,
|
|
&norm_utf7_p, &norm_utf7_len) == -1) {
|
|
g_warning(_("iconv cannot convert %s to UTF-7\n"),
|
|
conv_get_current_charset_str());
|