$OpenBSD: patch-imap_browse_c,v 1.4 2008/05/21 13:46:19 sthen Exp $
--- imap/browse.c.orig	Sat May 17 19:52:24 2008
+++ imap/browse.c	Sat May 17 22:34:14 2008
@@ -318,7 +318,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;
 
