Fix mg_match_prefix

PUBLISHED_FROM=4fdfa61e7b3b62083b0ac8fe74dd2dd3793f50fe
This commit is contained in:
Alexander Alashkin authored and Cesanta Bot committed 2016-11-15 13:36:31 +00:00
1 parent 37a7031f4e
commit 8a6cf95fad
1 file changed
+1 -1
+1 -1
View File
@@ -9222,7 +9222,7 @@ int mg_match_prefix_n(const struct mg_str pattern, const struct mg_str str) {
len = str.len - j;
} else {
len = 0;
while (j + len != str.len && str.p[len] != '/') {
while (j + len != str.len && str.p[j + len] != '/') {
len++;
}
}