]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Bug 7196 - month range did not work
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 22 May 2006 14:34:34 +0000 (14:34 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 22 May 2006 14:34:34 +0000 (14:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29394 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index 7cd94e6d2d0a56a7bc99c010e81d86afbf531b25..3e0c417243d05a2793bb1bfe3b073107f151c0ff 100644 (file)
--- a/pbx.c
+++ b/pbx.c
@@ -4064,7 +4064,7 @@ static unsigned int get_month(char *mon)
        }
        if (c) {
                e = 0;
-               while((e < 12) && strcasecmp(mon, months[e])) e++;
+               while((e < 12) && strcasecmp(c, months[e])) e++;
                if (e >= 12) {
                        ast_log(LOG_WARNING, "Invalid month '%s', assuming none\n", c);
                        return 0;