diff options
| author | 2015-02-27 01:25:12 +0100 | |
|---|---|---|
| committer | 2015-02-27 01:25:12 +0100 | |
| commit | 8236f2c376e8a76662da2126b2a1c4c9f90f7716 (patch) | |
| tree | b94a603d30610b80052c13b9e8b926f0e8f7eafe /src/modules/m_ldapauth.cpp | |
| parent | Merge pull request #916 from ShutterQuick/master+kickrejoinbound (diff) | |
| download | inspircd++-8236f2c376e8a76662da2126b2a1c4c9f90f7716.tar.gz inspircd++-8236f2c376e8a76662da2126b2a1c4c9f90f7716.tar.bz2 inspircd++-8236f2c376e8a76662da2126b2a1c4c9f90f7716.zip | |
Fix oversights in substr() conversion
Thanks to @StevenVanAcker for reporting and testing this
Diffstat (limited to 'src/modules/m_ldapauth.cpp')
| -rw-r--r-- | src/modules/m_ldapauth.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
