From 1326e175364766df085df6ac6718769ad2c04503 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Thu, 8 Jun 2000 23:42:04 +0000 Subject: [PATCH] Fix format strings. cache_expire's type was changed to long. --- ext/session/session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/session/session.c b/ext/session/session.c index 420d1160035..b9683fe644b 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();