diff options
Diffstat (limited to 'toj/center/src/judgm_lib.h')
-rw-r--r-- | toj/center/src/judgm_lib.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toj/center/src/judgm_lib.h b/toj/center/src/judgm_lib.h index 324147e..4aa02fa 100644 --- a/toj/center/src/judgm_lib.h +++ b/toj/center/src/judgm_lib.h @@ -269,7 +269,7 @@ public: } }; -static int judgm_compile(int subid,char *code_path,char *exe_path,int lang,bool force_flag,char *errmsg,size_t errsize){ +static int judgm_compile(int subid,char *code_path,char *exe_path,int lang,bool force_flag,char *err_msg,size_t err_len){ int ret; int i; @@ -336,10 +336,10 @@ compile: close(io[1]); off = 0; - while((ret = read(io[0],errmsg + off,errsize - off - 1)) > 0){ + while((ret = read(io[0],err_msg + off,err_len - off - 1)) > 0){ off += ret; } - errmsg[off] = '\0'; + err_msg[off] = '\0'; close(io[0]); waitpid(pid,&wstatus,0); |