[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdecore/io
From: Rolf Eike Beer <kde () opensource ! sf-tec ! de>
Date: 2007-03-23 16:20:30
Message-ID: 1174666830.840606.12081.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 645801 by dakon:
Fix KProcIO::received()
KProcess has a 0-terminated buffer and returns the length of the used area.
Copying one byte more also copies the 0. On long output (>1k) this adds a
0-byte every 1024 bytes to the input string which messes up the data
received from the slave process.
M +1 -1 kprocio.cpp
--- trunk/KDE/kdelibs/kdecore/io/kprocio.cpp #645800:645801
@@ -192,7 +192,7 @@
void KProcIO::received (KProcess *, char *buffer, int buflen)
{
- d->recvbuffer += QByteArray(buffer, buflen+1);
+ d->recvbuffer += QByteArray(buffer, buflen);
controlledEmission();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic