Commit 8a6cf95f authored by Alexander Alashkin's avatar Alexander Alashkin Committed by Cesanta Bot

Fix mg_match_prefix

PUBLISHED_FROM=4fdfa61e7b3b62083b0ac8fe74dd2dd3793f50fe
parent 37a7031f
...@@ -9222,7 +9222,7 @@ int mg_match_prefix_n(const struct mg_str pattern, const struct mg_str str) { ...@@ -9222,7 +9222,7 @@ int mg_match_prefix_n(const struct mg_str pattern, const struct mg_str str) {
len = str.len - j; len = str.len - j;
} else { } else {
len = 0; len = 0;
while (j + len != str.len && str.p[len] != '/') { while (j + len != str.len && str.p[j + len] != '/') {
len++; len++;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment