diff --git a/imap-send.c b/imap-send.c
index e95cdde062b0741fa8c73ddc87ada2fbfab8921f..a429a76a6385bb7d7935cfaddec9cfc8508c77e5 100644 (file)
--- a/imap-send.c
+++ b/imap-send.c
} while (!feof(f));
msg->len = buf.len;
- msg->data = strbuf_detach(&buf);
+ msg->data = strbuf_detach(&buf, NULL);
return msg->len;
}