This is a patch from OpenBSD to initialize the newname buffer in
imap_mailbox_rename(). Previously it would generate random garbage in
the prompt.
This version of the patch initializes the prompt to the old mailbox name.
Thanks to TAKAHASHI Tamotsu for finding this patch.
}
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;