diff options
author | stanton <stanton@noemail.net> | 1998-06-18 18:07:03 (GMT) |
---|---|---|
committer | stanton <stanton@noemail.net> | 1998-06-18 18:07:03 (GMT) |
commit | 104bad58ac819a1bfcc376d1db482e34cd8cd333 (patch) | |
tree | 54e4a9f95e6dd5c9e75a48c83f8cf2f876490d1f /unix | |
parent | 1b9432a53a66dbaac275ee8b83ba267e0ba7adf0 (diff) | |
download | tcl-104bad58ac819a1bfcc376d1db482e34cd8cd333.zip tcl-104bad58ac819a1bfcc376d1db482e34cd8cd333.tar.gz tcl-104bad58ac819a1bfcc376d1db482e34cd8cd333.tar.bz2 |
changed size of static buffers in tclUnixInit to ensure that they are
large enough for any TCL_LIBRARY or TCL_PACKAGE_PATH
FossilOrigin-Name: 88ca5c55fd0426021ff0f8e3bfe282a58ee2160b
Diffstat (limited to 'unix')
-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? |