mirror of https://github.com/axmolengine/axmol.git
modify recv namelen array
This commit is contained in:
parent
d8119321e4
commit
2f62cd2383
|
@ -363,7 +363,7 @@ bool CreateDir(const char *sPathName)
|
|||
bool FileServer::recv_file(int fd)
|
||||
{
|
||||
char buffer[1024]={0};
|
||||
char namelen[4]={0};
|
||||
char namelen[5]={0};
|
||||
if (recv(fd, namelen, 4,0)<=0) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue