From abc099c732785fcaf7df757f1a263a219a690549 Mon Sep 17 00:00:00 2001 From: olavmrk Date: Fri, 18 Mar 2011 08:58:58 +0000 Subject: Properly terminate parameter list for apr_pstrcat. On 64-bit, "0" is an 32-bit integer while the parameter list should be terminated by a 64-bit NULL pointer. Change the parameter to NULL to avoid possible misbehaviour due to this. git-svn-id: https://modmellon.googlecode.com/svn/trunk@115 a716ebb1-153a-0410-b759-cfb97c6a1b53 --- auth_mellon_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'auth_mellon_config.c') diff --git a/auth_mellon_config.c b/auth_mellon_config.c index e2323d3..bf3347a 100644 --- a/auth_mellon_config.c +++ b/auth_mellon_config.c @@ -390,7 +390,7 @@ static const char *am_set_endpoint_path(cmd_parms *cmd, /* Make sure that the path ends with '/'. */ if(strlen(arg) == 0 || arg[strlen(arg) - 1] != '/') { - d->endpoint_path = apr_pstrcat(cmd->pool, arg, "/", 0); + d->endpoint_path = apr_pstrcat(cmd->pool, arg, "/", NULL); } else { d->endpoint_path = arg; } -- cgit