diff options
author | olavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53> | 2011-03-18 08:58:58 +0000 |
---|---|---|
committer | olavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53> | 2011-03-18 08:58:58 +0000 |
commit | abc099c732785fcaf7df757f1a263a219a690549 (patch) | |
tree | b768e43e08d3e379e0370978074c5ceeb49e128d | |
parent | 000b791af8867c970bf17fb689d5d9707f54adfc (diff) | |
download | mod_auth_mellon-abc099c732785fcaf7df757f1a263a219a690549.tar.gz mod_auth_mellon-abc099c732785fcaf7df757f1a263a219a690549.tar.xz mod_auth_mellon-abc099c732785fcaf7df757f1a263a219a690549.zip |
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
-rw-r--r-- | auth_mellon_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |