From 0b819eefc7539951d5e9a2d0d31c1a9133efb5bd Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Thu, 6 Mar 2008 00:15:03 +0000 Subject: [PATCH] Right, when you're copying things you use two variables, not one. git-svn-id: svn://scripts.mit.edu/server/common/oursrc/httpdmods@673 db9d59ff-b01e-0410-9b1a-cd9a8c06840f --- mod_vhost_ldap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mod_vhost_ldap.c b/mod_vhost_ldap.c index 8a18212..0231979 100644 --- a/mod_vhost_ldap.c +++ b/mod_vhost_ldap.c @@ -425,22 +425,22 @@ char* mod_vhost_ldap_sanitize(apr_pool_t* p, const char* source) { switch (*source) { case '*': strcpy(target, "\\2a"); - target += 2; + target += 3; break; case '(': strcpy(target, "\\28"); - target += 2; + target += 3; break; case ')': strcpy(target, "\\29"); - target += 2; + target += 3; break; case '\\': strcpy(target, "\\5c"); - target += 2; + target += 3; break; default: - *target = *source; + *target++ = *source; } } *target = '\0'; -- 2.45.1