From: Sascha Schumann Date: Thu, 8 Jun 2000 23:42:04 +0000 (+0000) Subject: Fix format strings. cache_expire's type was changed to long. X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1326e175364766df085df6ac6718769ad2c04503;p=php Fix format strings. cache_expire's type was changed to long. --- diff --git a/ext/session/session.c b/ext/session/session.c index 420d116003..b9683fe644 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -544,7 +544,7 @@ CACHE_LIMITER_FUNC(public) strcat_gmt(buf, &now); ADD_COOKIE(buf); - sprintf(buf, "Cache-Control: public, max-age=%d", PS(cache_expire) * 60); + sprintf(buf, "Cache-Control: public, max-age=%ld", PS(cache_expire) * 60); ADD_COOKIE(buf); last_modified(); @@ -555,7 +555,7 @@ CACHE_LIMITER_FUNC(private) char buf[MAX_STR + 1]; ADD_COOKIE("Expires: Thu, 19 Nov 1981 08:52:00 GMT"); - sprintf(buf, "Cache-Control: private, max-age=%d, pre-check=%d", PS(cache_expire) * 60, PS(cache_expire) * 60); + sprintf(buf, "Cache-Control: private, max-age=%ld, pre-check=%ld", PS(cache_expire) * 60, PS(cache_expire) * 60); ADD_COOKIE(buf); last_modified();