Search
SailfishOS Open Build Service
>
Projects
>
home:WillWilson
>
expect
> expect-5.43.0-ignore-empty-write.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File expect-5.43.0-ignore-empty-write.patch of Package expect
--- a/exp_chan.c 2009-08-31 09:09:57.921946286 -0500 +++ b/exp_chan.c 2009-08-31 09:12:49.247689754 -0500 @@ -248,6 +248,9 @@ ExpOutputProc(instanceData, buf, toWrite *errorCodePtr = 0; if (toWrite < 0) Tcl_Panic("ExpOutputProc: called with negative char count"); + if (toWrite == 0) { + return 0; + } written = write(esPtr->fdout, buf, (size_t) toWrite); if (written == 0) {