未验证 提交 214396b0 编写于 作者: 何延龙 提交者: GitHub

Merge pull request #63 from heyanlong/5xx

fix bugs
......@@ -673,7 +673,7 @@ static void request_init() {
zval temp;
char *peer = NULL;
char *uri = get_page_request_uri();
char *path = (char*)emalloc(sizeof(char) * strlen(uri));
char *path = (char*)emalloc(sizeof(char) * strlen(uri) + 5);
int i;
for(i = 0; i < strlen(uri); i++) {
......@@ -682,7 +682,6 @@ static void request_init() {
}
path[i] = uri[i];
}
path[i] = '\0';
array_init(&temp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册