[asterisk-commits] tilghman: branch 1.2 r221754 - /branches/1.2/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 1 16:20:24 CDT 2009


Author: tilghman
Date: Thu Oct  1 16:20:17 2009
New Revision: 221754

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=221754
Log:
Days are days of month, not days of week.
Fixes regression due to AST-2009-005.
(closes issue #15765)
 Reported by: hooi
 Patches: 
       20090825__issue15765.diff.txt uploaded by tilghman (license 14)
 Tested by: nic_bellamy

Modified:
    branches/1.2/pbx.c

Modified: branches/1.2/pbx.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.2/pbx.c?view=diff&rev=221754&r1=221753&r2=221754
==============================================================================
--- branches/1.2/pbx.c (original)
+++ branches/1.2/pbx.c Thu Oct  1 16:20:17 2009
@@ -4016,7 +4016,7 @@
 		c++;
 	}
 	/* Find the start */
-	if (sscanf(day, "%1d", &s) != 1) {
+	if (sscanf(day, "%2d", &s) != 1) {
 		ast_log(LOG_WARNING, "Invalid day '%s', assuming none\n", day);
 		return 0;
 	}
@@ -4026,7 +4026,7 @@
 	}
 	s--;
 	if (c) {
-		if (sscanf(c, "%1d", &e) != 1) {
+		if (sscanf(c, "%2d", &e) != 1) {
 			ast_log(LOG_WARNING, "Invalid day '%s', assuming none\n", c);
 			return 0;
 		}




More information about the asterisk-commits mailing list