modify recv namelen array

This commit is contained in:
chuanweizhang2013 2014-03-15 18:30:58 +08:00
parent d8119321e4
commit 2f62cd2383
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}