summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-27 12:49:12 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-27 12:49:12 (GMT)
commit58bfc878552abf56614cd68e7c64ff5bd4be0352 (patch)
treeb9ae6f84089e9eb1bb44685f50f540ea204f481a /unix/tclUnixFile.c
parentf9a41451e715d5b4ed182e21c798d7a589174f0f (diff)
downloadtcl-58bfc878552abf56614cd68e7c64ff5bd4be0352.zip
tcl-58bfc878552abf56614cd68e7c64ff5bd4be0352.tar.gz
tcl-58bfc878552abf56614cd68e7c64ff5bd4be0352.tar.bz2
fix bug in cygwin's [info nameofexecutable]
install dde and registry dll for cygwin
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index 73237c5..2616eda 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -70,7 +70,7 @@ TclpFindExecutable(argv0)
}
tclNativeExecutableName = (char *) ckalloc(length + 1);
memcpy(tclNativeExecutableName, name, length);
- buf[length] = '\0';
+ tclNativeExecutableName[length] = '\0';
#else
if (argv0 == NULL) {
return NULL;