openbsd-ports/www/php5/patches/patch-ext_calendar_calendar_c
robert 48abbd4bee - add a fastcgi subpackage to core because now we are able to build
more than one php binaries within one workdir (idea from FreeBSD)
- move pdo_sqlite support from core to extensions and also add a pdo_mysql
and a pdo_sqlite subpackage
- regen patches while here
- bump PKGNAMEs
2007-04-01 21:37:27 +00:00

13 lines
495 B
Plaintext

$OpenBSD: patch-ext_calendar_calendar_c,v 1.2 2007/04/01 21:37:27 robert Exp $
--- ext/calendar/calendar.c.orig Mon Jan 1 10:35:48 2007
+++ ext/calendar/calendar.c Sun Apr 1 13:42:42 2007
@@ -416,7 +416,7 @@ PHP_FUNCTION(cal_from_jd)
calendar->from_jd(jd, &year, &month, &day);
- sprintf(date, "%i/%i/%i", month, day, year);
+ snprintf(date, sizeof date, "%i/%i/%i", month, day, year);
add_assoc_string(return_value, "date", date, 1);
add_assoc_long(return_value, "month", month);