$OpenBSD: patch-imap_browse_c,v 1.5 2009/06/16 09:37:19 sthen Exp $
--- imap/browse.c.orig	Tue Jan 20 04:36:13 2009
+++ imap/browse.c	Mon Jun 15 21:06:09 2009
@@ -322,7 +322,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;
 
