summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorstanton <stanton>1998-06-18 18:07:04 (GMT)
committerstanton <stanton>1998-06-18 18:07:04 (GMT)
commit29ec2f13e564572172cb85bba491e90a0259c4a5 (patch)
tree54e4a9f95e6dd5c9e75a48c83f8cf2f876490d1f /unix
parent8a178c6be4a1066eb916858862f62646f57a90e0 (diff)
downloadtcl-29ec2f13e564572172cb85bba491e90a0259c4a5.zip
tcl-29ec2f13e564572172cb85bba491e90a0259c4a5.tar.gz
tcl-29ec2f13e564572172cb85bba491e90a0259c4a5.tar.bz2
changed size of static buffers in tclUnixInit to ensure that they are
large enough for any TCL_LIBRARY or TCL_PACKAGE_PATH
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixInit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c
index 91d866f..0001d19 100644
--- a/unix/tclUnixInit.c
+++ b/unix/tclUnixInit.c
@@ -28,7 +28,7 @@
* symbol is defined by Makefile.
*/
-static char defaultLibraryDir[200] = TCL_LIBRARY;
+static char defaultLibraryDir[sizeof(TCL_LIBRARY)+200] = TCL_LIBRARY;
/*
* Directory in which to look for packages (each package is typically
@@ -36,7 +36,7 @@ static char defaultLibraryDir[200] = TCL_LIBRARY;
* defined by Makefile.
*/
-static char pkgPath[200] = TCL_PACKAGE_PATH;
+static char pkgPath[sizeof(TCL_PACKAGE_PATH)+200] = TCL_PACKAGE_PATH;
/*
* Is this module initialized?