summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-07-10 12:52:10 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-07-10 12:52:10 (GMT)
commit2ebc99f24c5036009ba72a25e29a6daf38f6e225 (patch)
tree492a74e55df8bfccc76441d37f977dd995985e4c /generic
parent3a8a933edb952e99b71566656429d729c76c566e (diff)
downloadtcl-2ebc99f24c5036009ba72a25e29a6daf38f6e225.zip
tcl-2ebc99f24c5036009ba72a25e29a6daf38f6e225.tar.gz
tcl-2ebc99f24c5036009ba72a25e29a6daf38f6e225.tar.bz2
Repair buffer indexing error in Tcl_ReadRaw() exposed by iogt-6.0 and valgrind.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclIO.c2
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 */