CID 704 : Off-by-one error.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38043 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -640,7 +640,7 @@ POP3Protocol::ReceiveLine(BString &line)
|
||||
status_t
|
||||
POP3Protocol::SendCommand(const char *cmd)
|
||||
{
|
||||
if (fSocket < 0 || fSocket > FD_SETSIZE)
|
||||
if (fSocket < 0 || fSocket >= FD_SETSIZE)
|
||||
return B_FILE_ERROR;
|
||||
|
||||
//printf(cmd);
|
||||
|
||||
Reference in New Issue
Block a user