diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2004-02-02 00:06:17 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2004-02-02 00:06:17 +0000 |
commit | 25053ba01b757331b95b03b3fc234d78bc22c103 (patch) | |
tree | 5426d0ac958093a314e4425a7f0e15bcf1672b5d /ext | |
parent | 19323178448e23e3ed9375b26efcbfb7031a9e18 (diff) | |
download | php-git-25053ba01b757331b95b03b3fc234d78bc22c103.tar.gz |
Fixed possible overflows.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/calendar/calendar.c | 8 |
1 files 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; |