use an Enum for the cm_fields vector instead of nameless chars
[citadel.git] / citadel / modules / autocompletion / serv_autocompletion.c
index f84020e7a12aa461ea0f4d917ee7d0670e80c902..8bb5da0217400eec9b10ac8802b9f72c4017d816 100644 (file)
@@ -62,7 +62,7 @@ void hunt_for_autocomplete(long msgnum, char *search_string) {
        msg = CtdlFetchMessage(msgnum, 1);
        if (msg == NULL) return;
 
-       v = vcard_load(msg->cm_fields['M']);
+       v = vcard_load(msg->cm_fields[eMesageText]);
        CtdlFreeMessage(msg);
 
        /*