fix unload from queue and multithread process

beta
deffpuzzl 2018-06-21 14:30:58 +08:00
parent 249d602251
commit ca5e806e4c
1 changed files with 1 additions and 1 deletions

View File

@ -1091,7 +1091,7 @@ long lCreateByFile(char *pszFile)
return RC_FAIL; return RC_FAIL;
} }
if(NULL == (pszCreate = (char *)calloc(stBuf.st_size, 1))) if(NULL == (pszCreate = (char *)calloc(stBuf.st_size + 1, 1)))
{ {
fprintf(stderr, "create memory error, %s\n", strerror(errno)); fprintf(stderr, "create memory error, %s\n", strerror(errno));
return RC_FAIL; return RC_FAIL;