]> granicus.if.org Git - apache/commitdiff
* server/util_cookies.c (ap_cookie_write2): Add missing sentinel in
authorJoe Orton <jorton@apache.org>
Wed, 6 Aug 2008 14:52:37 +0000 (14:52 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 6 Aug 2008 14:52:37 +0000 (14:52 +0000)
  apr_pstrcat call.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@683286 13f79535-47bb-0310-9956-ffa450edef68

server/util_cookies.c

index 376afc0db3177d645cd6a810eb9b6c3a091b761a..45ff8dad90f9180995b44f2c05c13e9a987f9595 100644 (file)
@@ -77,7 +77,7 @@ AP_DECLARE(apr_status_t) ap_cookie_write2(request_rec * r, const char *name2, co
     /* handle expiry */
     buffer = "";
     if (maxage) {
-        buffer = apr_pstrcat(r->pool, "Max-Age=", apr_ltoa(r->pool, maxage), ";");
+        buffer = apr_pstrcat(r->pool, "Max-Age=", apr_ltoa(r->pool, maxage), ";", NULL);
     }
 
     /* create RFC2965 compliant cookie */