* duplicate memreadline & bmstrcasestr to a const and non const version
[citadel.git] / citadel / modules / imap / imap_fetch.c
index 0ee327cb87ade858d3cbeb4d5d34b7f06659ce83..0a6ee4f1eea60ae03749535332ac0af19be90b71 100644 (file)
@@ -946,7 +946,7 @@ void imap_fetch_bodystructure (long msgnum, const char *item,
 
                ptr = rfc822;
                do {
-                       ptr = memreadline(ptr, buf, sizeof buf);
+                       ptr = cmemreadline(ptr, buf, sizeof buf);
                        ++lines;
                        if ((IsEmptyStr(buf)) && (rfc822_body == NULL)) {
                                rfc822_body = ptr;