summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r--generic/tclProc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c
index be35bab..abfd152 100644
--- a/generic/tclProc.c
+++ b/generic/tclProc.c
@@ -1155,7 +1155,7 @@ TclObjInterpProc(clientData, interp, objc, objv)
len = Tcl_ScanCountedElement(procName, nameLen, &flags);
if (len != nameLen) {
- char *procName1 = ckalloc((unsigned) len);
+ char *procName1 = ckalloc((unsigned) len + 1);
len = Tcl_ConvertCountedElement(procName, nameLen, procName1, flags);
Tcl_AppendToObj(objResult, procName1, len);
ckfree(procName1);