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)
commitf4e6a60dfb4f87476b5af1da6a0e1b3d9011db51 (patch)
treeb9ae6f84089e9eb1bb44685f50f540ea204f481a /unix/tclUnixFile.c
parent20211223f452acef311b0d5a2b5467cad66b4ce5 (diff)
downloadtcl-f4e6a60dfb4f87476b5af1da6a0e1b3d9011db51.zip
tcl-f4e6a60dfb4f87476b5af1da6a0e1b3d9011db51.tar.gz
tcl-f4e6a60dfb4f87476b5af1da6a0e1b3d9011db51.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;