[asterisk-commits] lmadsen: tag 1.2.38 r245669 - /tags/1.2.38/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 9 06:57:38 CST 2010


Author: lmadsen
Date: Tue Feb  9 06:57:33 2010
New Revision: 245669

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=245669
Log:
Import change from revision 221754 that was missed.
(issue #15765)

Modified:
    tags/1.2.38/pbx.c

Modified: tags/1.2.38/pbx.c
URL: http://svnview.digium.com/svn/asterisk/tags/1.2.38/pbx.c?view=diff&rev=245669&r1=245668&r2=245669
==============================================================================
--- tags/1.2.38/pbx.c (original)
+++ tags/1.2.38/pbx.c Tue Feb  9 06:57:33 2010
@@ -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