X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_ldapauth.cpp;h=7da63284a47a430074d1607f4add6728dc633090;hb=0b63ccd0b5cb26883d6becb196fb98e4f95d0397;hp=804f6b82122ed85b7022ce88db180f6e9d7bca71;hpb=74d469af3937518f7619a78bc2fe99a4d662deea;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_ldapauth.cpp b/src/modules/m_ldapauth.cpp index 804f6b821..7da63284a 100644 --- a/src/modules/m_ldapauth.cpp +++ b/src/modules/m_ldapauth.cpp @@ -64,7 +64,7 @@ class BindInterface : public LDAPInterface while (i < text.length() - 1 && isalpha(text[i + 1])) ++i; - std::string key(start, (i - start) + 1); + std::string key(text, start, (i - start) + 1); result.append(replacements[key]); } else