diff options
author | dgp <dgp@users.sourceforge.net> | 2014-07-10 12:52:10 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2014-07-10 12:52:10 (GMT) |
commit | 2ebc99f24c5036009ba72a25e29a6daf38f6e225 (patch) | |
tree | 492a74e55df8bfccc76441d37f977dd995985e4c | |
parent | 3a8a933edb952e99b71566656429d729c76c566e (diff) | |
download | tcl-2ebc99f24c5036009ba72a25e29a6daf38f6e225.zip tcl-2ebc99f24c5036009ba72a25e29a6daf38f6e225.tar.gz tcl-2ebc99f24c5036009ba72a25e29a6daf38f6e225.tar.bz2 |
Repair buffer indexing error in Tcl_ReadRaw() exposed by iogt-6.0 and valgrind.
-rw-r--r-- | generic/tclIO.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c index 9deec87..1a9ff65 100644 --- a/generic/tclIO.c +++ b/generic/tclIO.c @@ -5023,7 +5023,7 @@ Tcl_ReadRaw( if (bytesToRead > 0) { - int nread = ChanRead(chanPtr, readBuf+copied, bytesToRead); + int nread = ChanRead(chanPtr, readBuf, bytesToRead); if (nread > 0) { /* Successful read (short is OK) - add to bytes copied */ |