From: Geoffrey Thomas Date: Thu, 6 Mar 2008 00:15:03 +0000 (+0000) Subject: Right, when you're copying things you use two variables, not one. X-Git-Url: http://andersk.mit.edu/gitweb/mod-vhost-ldap.git/commitdiff_plain/0b819eefc7539951d5e9a2d0d31c1a9133efb5bd 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 --- 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';