aboutsummaryrefslogtreecommitdiffstats
path: root/src/stringutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/stringutils.cpp')
-rw-r--r--src/stringutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stringutils.cpp b/src/stringutils.cpp
index 46fb0a6c7..282d8a3c2 100644
--- a/src/stringutils.cpp
+++ b/src/stringutils.cpp
@@ -44,7 +44,7 @@ std::string Percent::Encode(const void* data, size_t length, const char* table,
for (size_t idx = 0; idx < length; ++idx)
{
unsigned char chr = udata[idx];
- if (strchr(table, chr))
+ if (memchr(table, chr, strlen(table)))
{
// The character is on the safe list; push it as is.
buffer.push_back(chr);