fix "garbled characters" issue in imap rename, as reported by marco@

"get it in" sthen@, ok merdely@
This commit is contained in:
okan 2008-02-06 15:01:56 +00:00
parent 009cb54b7f
commit 51bb21b6fa
2 changed files with 16 additions and 1 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.45 2007/11/11 10:09:43 sthen Exp $
# $OpenBSD: Makefile,v 1.46 2008/02/06 15:01:56 okan Exp $
COMMENT= tty-based e-mail client, development version
VERSION= 1.5.17
DISTNAME= mutt-${VERSION}
PKGNAME= ${DISTNAME}p0
MASTER_SITES= ${MASTER_SITES_MUTT:=devel/}
FLAVORS= idn sasl sidebar

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-imap_browse_c,v 1.3 2008/02/06 15:01:56 okan Exp $
--- imap/browse.c.orig Mon May 28 19:19:39 2007
+++ imap/browse.c Tue Feb 5 17:42:51 2008
@@ -313,7 +313,9 @@ int imap_mailbox_rename(const char* mailbox)
}
snprintf(buf, sizeof (buf), _("Rename mailbox %s to: "), mx.mbox);
-
+
+ strfcpy (newname, NONULL (mx.mbox), sizeof (newname));
+
if (mutt_get_field (buf, newname, sizeof (newname), M_FILE) < 0)
goto fail;