aboutsummaryrefslogtreecommitdiffstats
path: root/toj/center/src/judge_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toj/center/src/judge_server.cpp')
-rwxr-xr-xtoj/center/src/judge_server.cpp2
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;
}