From 8236f2c376e8a76662da2126b2a1c4c9f90f7716 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 27 Feb 2015 01:25:12 +0100 Subject: Fix oversights in substr() conversion Thanks to @StevenVanAcker for reporting and testing this --- src/modules/m_ldapauth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_ldapauth.cpp') 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 -- cgit v1.3.1-10-gc9f91