Commit 8452fecc by Edward Thomson

cl_git_path_url: assert sane static buffer size

parent 4cc355c9
......@@ -299,6 +299,8 @@ const char* cl_git_path_url(const char *path)
in_buf++;
}
cl_assert(url_buf.size < 4096);
strncpy(url, git_buf_cstr(&url_buf), 4096);
git_buf_free(&url_buf);
git_buf_free(&path_buf);
......
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