From 29ec2f13e564572172cb85bba491e90a0259c4a5 Mon Sep 17 00:00:00 2001 From: stanton Date: Thu, 18 Jun 1998 18:07:04 +0000 Subject: changed size of static buffers in tclUnixInit to ensure that they are large enough for any TCL_LIBRARY or TCL_PACKAGE_PATH --- unix/tclUnixInit.c | 4 ++-- 1 file 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? -- cgit v0.12