mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
kio: do not use static buffer in SocketConnectionBackend::socketReadyRead()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
2da04652d4
commit
feda883352
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ void SocketConnectionBackend::socketReadyRead()
|
||||||
// kDebug() << this << "Got " << socket->bytesAvailable() << " bytes";
|
// kDebug() << this << "Got " << socket->bytesAvailable() << " bytes";
|
||||||
if (len == -1) {
|
if (len == -1) {
|
||||||
// We have to read the header
|
// We have to read the header
|
||||||
static char buffer[HeaderSize];
|
char buffer[HeaderSize];
|
||||||
|
|
||||||
if (socket->bytesAvailable() < HeaderSize) {
|
if (socket->bytesAvailable() < HeaderSize) {
|
||||||
return; // wait for more data
|
return; // wait for more data
|
||||||
|
|
Loading…
Add table
Reference in a new issue