mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +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";
|
||||
if (len == -1) {
|
||||
// We have to read the header
|
||||
static char buffer[HeaderSize];
|
||||
char buffer[HeaderSize];
|
||||
|
||||
if (socket->bytesAvailable() < HeaderSize) {
|
||||
return; // wait for more data
|
||||
|
|
Loading…
Add table
Reference in a new issue