From: Art Cancro Date: Mon, 19 Nov 2007 15:52:57 +0000 (+0000) Subject: ooops... ascmonths[] was in use in imap_tools.c ... fixed X-Git-Tag: v7.86~2771 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=e64512d425ea3e2696b2084855af1c0ef8e631a0 ooops... ascmonths[] was in use in imap_tools.c ... fixed --- diff --git a/citadel/modules/imap/imap_tools.c b/citadel/modules/imap/imap_tools.c index 0e62a407c..f0eeef926 100644 --- a/citadel/modules/imap/imap_tools.c +++ b/citadel/modules/imap/imap_tools.c @@ -772,6 +772,10 @@ int imap_datecmp(char *datestr, time_t msgtime) { int msgday, msgmonth, msgyear; struct tm msgtm; + char *imap_datecmp_ascmonths[12] = { + "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" + }; + if (datestr == NULL) return(0); /* Expecting a date in the form dd-Mmm-yyyy */ @@ -783,7 +787,7 @@ int imap_datecmp(char *datestr, time_t msgtime) { year = atoi(yearstr); month = 0; for (i=0; i<12; ++i) { - if (!strcasecmp(monthstr, ascmonths[i])) { + if (!strcasecmp(monthstr, imap_datecmp_ascmonths[i])) { month = i; } }