Skip to content
Tcl Source Code Artifact [f84868ad4f]
Login

Artifact [f84868ad4f]

Artifact f84868ad4fae2f1fc88177503b7428575a513aec:

Ticket change [f84868ad4f] - Ticket [686782ffffffffff|686782ffff] <i>Changes to Tcl_SetObjLength() break &quot;expect -re&quot;</i> status still Open with 5 other changes by rmax on 2003-02-18 04:34:23.
D 2003-02-18T04:34:23
J icomment Logged\sIn:\sYES\s\nuser_id=124643\n\nI\sthink\sI\sgou\sit:\nexpect.c\saround\sline\s2220\smodifies\sthe\scontents\sof\sthe\npointer\sthat\scomes\sback\sfrom\sTcl_GetStringFromObj():\n\n----\ssnip\s----\nstr\s=\sTcl_GetStringFromObj(esPtr->buffer,\s&length);\n...\nif\s(length\s!=\s0)\s{\n\s\s\s\smemmove(str,str+match,length-match);\n}\nTcl_SetObjLength(esPtr->buffer,\slength-match);\n---\ssnap\s----\n\nThis\smodifies\sthe\sstring\srep,\sbut\sdoesn't\supdate\sthe\sunicode\nstring.\n
J login rmax
J mimetype text/plain
J title Changes\sto\sTcl_SetObjLength()\sbreak\s"expect\s-re"
J username rmax
K 686782ffffffffffffffffffffffffffffffffff
U rmax
Z 2d563de1c82b03887875a4c8a3be4836