]> granicus.if.org Git - php/commitdiff
Fix format strings. cache_expire's type was changed to long.
authorSascha Schumann <sas@php.net>
Thu, 8 Jun 2000 23:42:04 +0000 (23:42 +0000)
committerSascha Schumann <sas@php.net>
Thu, 8 Jun 2000 23:42:04 +0000 (23:42 +0000)
ext/session/session.c

index 420d116003519567d7ec367285749673517b2241..b9683fe644b914b1d398f3aa6f6e508fe4042ab3 100644 (file)
@@ -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();