From e64512d425ea3e2696b2084855af1c0ef8e631a0 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 19 Nov 2007 15:52:57 +0000 Subject: [PATCH] ooops... ascmonths[] was in use in imap_tools.c ... fixed --- citadel/modules/imap/imap_tools.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } } -- 2.30.2