diff options
Diffstat (limited to 'toj/center/src/judge_server.cpp')
-rwxr-xr-x | toj/center/src/judge_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toj/center/src/judge_server.cpp b/toj/center/src/judge_server.cpp index 7a2bb6a..66b4d01 100755 --- a/toj/center/src/judge_server.cpp +++ b/toj/center/src/judge_server.cpp @@ -216,7 +216,7 @@ void server_conn::recv_submit(void *buf,size_t len,void *data){ center_com_submit *sub; sub = (center_com_submit*)buf; - judge_manage_submit(sub->subid,sub->proid,sub->lang,(char*)((char*)buf + sizeof(center_com_submit))); + judge_manage_submit(sub->subid,sub->proid,sub->lang,(char*)((char*)buf + sizeof(center_com_submit)),len - sizeof(center_com_submit)); delete sub; } |