Commit 93fa25a4 authored by jehan's avatar jehan

fix array overflow

parent 8072be89
......@@ -867,7 +867,7 @@ static const char *get_uri_parameter_noescapes() {
}
static const char *get_uri_header_noescapes() {
static char noescapes[BELLE_SIP_NO_ESCAPES_SIZE] = {0};
if (noescapes[BELLE_SIP_NO_ESCAPES_SIZE] == 0) {
if (noescapes[BELLE_SIP_NO_ESCAPES_SIZE-1] == 0) {
/*
unreserved = alphanum / mark
mark = "-" / "_" / "." / "!" / "~" / "*" / "'"
......
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