File mod_auth_token-1.0.5-terminating_NULL.diff of Package apache2-mod_auth_token
diff -ruN mod_auth_token-1.0.5.orig/mod_auth_token.c mod_auth_token-1.0.5/mod_auth_token.c
--- mod_auth_token-1.0.5.orig/mod_auth_token.c 2008-06-19 17:32:57.000000000 +0200
+++ mod_auth_token-1.0.5/mod_auth_token.c 2011-03-04 01:13:02.000000000 +0100
@@ -62,7 +62,7 @@
auth_token_config_rec *conf = (auth_token_config_rec*)config;
if (arg[len - 1] != '/') {
- ap_set_string_slot(cmd, config, apr_pstrcat(cmd->pool, arg, '/'));
+ ap_set_string_slot(cmd, config, apr_pstrcat(cmd->pool, arg, '/', NULL));
conf->prefix_len = len + 1;
}
else {