From 25053ba01b757331b95b03b3fc234d78bc22c103 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 2 Feb 2004 00:06:17 +0000 Subject: [PATCH] Fixed possible overflows. --- ext/calendar/calendar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/calendar/calendar.c b/ext/calendar/calendar.c index 81cc37eadc..16fef3dbd4 100644 --- a/ext/calendar/calendar.c +++ b/ext/calendar/calendar.c @@ -301,7 +301,7 @@ PHP_FUNCTION(jdtogregorian) { long julday; int year, month, day; - char date[10]; + char date[16]; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &julday) == FAILURE) { RETURN_FALSE; @@ -337,7 +337,7 @@ PHP_FUNCTION(jdtojulian) { long julday; int year, month, day; - char date[10]; + char date[16]; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &julday) == FAILURE) { RETURN_FALSE; @@ -469,7 +469,7 @@ PHP_FUNCTION(jdtojewish) long julday, fl = 0; zend_bool heb = 0; int year, month, day; - char date[10], hebdate[25]; + char date[16], hebdate[25]; char *dayp, *yearp; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|bl", &julday, &heb, &fl) == FAILURE) { @@ -524,7 +524,7 @@ PHP_FUNCTION(jdtofrench) { long julday; int year, month, day; - char date[10]; + char date[16]; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &julday) == FAILURE) { RETURN_FALSE; -- 2.40.0