aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2012-08-19 10:46:44 +1000
committerSteve Bennett <steveb@workware.net.au>2012-08-19 10:49:27 +1000
commit8f2b66b05d90a3650886911d5926142b91c08c7d (patch)
treec7dca10b3f77950adf1a0fe9cc60a0bdef3f5d41
parent935d76b11cd4280a23af67a1b19f35670eadc59d (diff)
downloadjimtcl-8f2b66b05d90a3650886911d5926142b91c08c7d.zip
jimtcl-8f2b66b05d90a3650886911d5926142b91c08c7d.tar.gz
jimtcl-8f2b66b05d90a3650886911d5926142b91c08c7d.tar.bz2
Ensure that the full ref is passed to finalizer
The reference was being incorrectly truncated Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r--jim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jim.c b/jim.c
index d85895b..03a564b 100644
--- a/jim.c
+++ b/jim.c
@@ -5264,7 +5264,7 @@ int Jim_Collect(Jim_Interp *interp)
JimFormatReference(refstr, refPtr, *refId);
objv[0] = refPtr->finalizerCmdNamePtr;
- objv[1] = Jim_NewStringObjNoAlloc(interp, refstr, 32);
+ objv[1] = Jim_NewStringObjNoAlloc(interp, refstr, JIM_REFERENCE_SPACE);
objv[2] = refPtr->objPtr;
/* Drop the reference itself */