757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
|
if (ReadConsoleBytes(infoPtr->handle, (LPVOID) buf, (DWORD) bufSize,
&count) == TRUE) {
/*
* TODO: This potentially writes beyond the limits specified
* by the caller. In practice this is harmless, since all writes
* are into ChannelBuffers, and those have padding, but still
* ought to remove this, unless some Windows wizard can give
* a reason not to.
*/
buf[count] = '\0';
return count;
}
return -1;
}
|
|
|
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
|
if (ReadConsoleBytes(infoPtr->handle, (LPVOID) buf, (DWORD) bufSize,
&count) == TRUE) {
/*
* TODO: This potentially writes beyond the limits specified
* by the caller. In practice this is harmless, since all writes
* are into ChannelBuffers, and those have padding, but still
* ought to remove this, unless some Windows wizard can give
* a reason not to.
*/
buf[count] = '\0';
return count;
}
return -1;
}
|