Commit 5e885a2f authored by Geoff Simmons's avatar Geoff Simmons

fix an off-by-one error in url_encode_l() (count the terminating '\0')

parent 388ef3dd
......@@ -43,7 +43,7 @@ enum state_e {
size_t
url_encode_l(size_t l)
{
return l * 3;
return (l * 3) + 1;
}
size_t
......
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