Fix IMAP compilation error.
authorMark Michelson <mmichelson@digium.com>
Tue, 16 Oct 2007 16:40:24 +0000 (16:40 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 16 Oct 2007 16:40:24 +0000 (16:40 +0000)
(closes issue #10986, reported and patched by snuffy)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85883 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 904b4f8..6d52466 100644 (file)
@@ -2545,7 +2545,7 @@ static int imap_store_file(char *dir, char *mailboxuser, char *mailboxcontext, i
        ((char *)buf)[len] = '\0';
        INIT(&str, mail_string, buf, len);
        init_mailstream(vms, NEW_FOLDER);
-       imap_mailbox_name(mailbox, vms, NEW_FOLDER, 1);
+       imap_mailbox_name(mailbox, sizeof(mailbox), vms, NEW_FOLDER, 1);
        if(!mail_append(vms->mailstream, mailbox, &str))
                ast_log(LOG_ERROR, "Error while sending the message to %s\n", mailbox);
        fclose(p);