Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash.
Fixes #11504
  • Loading branch information
jyavenard committed Apr 24, 2013
1 parent cc1ca2e commit 87e62f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/ssdp.cpp
Expand Up @@ -323,7 +323,7 @@ void SSDP::ProcessData( MSocketDevice *pSocket )
long nRead = 0;
do
{
long ret = pSocket->readBlock( buffer.data() + nRead, nBytes );
long ret = pSocket->readBlock( buffer.data() + nRead, nBytes - nRead );
if (ret < 0)
{
LOG(VB_GENERAL, LOG_ERR, QString("Socket readBlock error %1")
Expand Down

0 comments on commit 87e62f5

Please sign in to comment.