Bug is KProcIO

Jimmy Gilles jimmygilles at gmail.com
Tue Nov 15 22:29:42 GMT 2005


Hello, i have found a bug in KProcIO.

i have found a bug in KProcIO. In fact, when i use readln(...)
sometimes the line is not complete because there is a \0 char in the
line and the "partial" parameter is not set to true. To fix that
problem i have added the line

recvbuffer.replace('\0', QByteArray(""));

just before the line

len=recvbuffer.find ('\n',rbi)-rbi;

in the file kprocio.cpp
I don't know if it is the good fix but it seems to work.

bye

--
Jimmy Gilles




More information about the kde-core-devel mailing list