summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2015-07-31 00:01:52 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2015-07-31 00:01:52 (GMT)
commit743ef38cdc29e8283156168d9a3dfef0af5ac8ba (patch)
tree3b64c767d556b1b82a7a697f7bdb6a330a1c2355 /generic
parentb62b6bd4906dcb1c89be74a7dd5c4951f4d7da70 (diff)
downloadtcl-743ef38cdc29e8283156168d9a3dfef0af5ac8ba.zip
tcl-743ef38cdc29e8283156168d9a3dfef0af5ac8ba.tar.gz
tcl-743ef38cdc29e8283156168d9a3dfef0af5ac8ba.tar.bz2
fix typo found by Coverity; no effect on "most" platforms (is there anyone where it would matter?)
Diffstat (limited to 'generic')
-rw-r--r--generic/tclFileName.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index a7251bb..39bac99 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -821,10 +821,10 @@ Tcl_FSJoinToPath(
return TclJoinPath(2, pair);
} else {
int elemc = objc + 1;
- Tcl_Obj *ret, **elemv = ckalloc(elemc*sizeof(Tcl_Obj **));
+ Tcl_Obj *ret, **elemv = ckalloc(elemc*sizeof(Tcl_Obj *));
elemv[0] = pathPtr;
- memcpy(elemv+1, objv, objc*sizeof(Tcl_Obj **));
+ memcpy(elemv+1, objv, objc*sizeof(Tcl_Obj *));
ret = TclJoinPath(elemc, elemv);
ckfree(elemv);
return ret;