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/mod_mellon2@115 a716ebb1-153a-0410-b759-cfb97c6a1b53
This commit is contained in:
parent
4a774de00c
commit
adc2367c38
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue