diff options
author | stanton <stanton> | 1998-06-18 18:07:04 (GMT) |
---|---|---|
committer | stanton <stanton> | 1998-06-18 18:07:04 (GMT) |
commit | 29ec2f13e564572172cb85bba491e90a0259c4a5 (patch) | |
tree | 54e4a9f95e6dd5c9e75a48c83f8cf2f876490d1f | |
parent | 8a178c6be4a1066eb916858862f62646f57a90e0 (diff) | |
download | tcl-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
-rw-r--r-- | unix/tclUnixInit.c | 4 |
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? |