really minor fix

master
Phitherek 2013-03-03 01:18:26 +01:00
parent 22f151c82d
commit 3b22c4d2db
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ int ClientSocket::send(std::string msg, int flags=0) {
}
int ClientSocket::recv(int flags) {
memset(&_buf[0], 0, sizeof(_buf));
memset(&buf[0], 0, sizeof(buf));
if(_protocol == "TCP") {
int rr = ::recv(_descriptor, buf, 99999, flags);
if(rr == -1) {