$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;
 
