update other bits in OpenBTS to use safer read() signature

This commit is contained in:
Michael Iedema
2016-05-06 18:19:19 +02:00
parent 5b5934707a
commit e09152ccb5
3 changed files with 3 additions and 3 deletions

View File

@@ -234,7 +234,7 @@ void ::ARFCNManager::driveRx()
{
// read the message
char buffer[MAX_UDP_LENGTH];
int msgLen = mDataSocket.read(buffer);
int msgLen = mDataSocket.read(buffer, sizeof(buffer));
if (msgLen<=0) SOCKET_ERROR;
// decode
unsigned char *rp = (unsigned char*)buffer;