summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2003-02-20 00:34:07 (GMT)
committerhobbs <hobbs>2003-02-20 00:34:07 (GMT)
commiteffb33b079561dbc4c3dce1f92f78bb618fbbbc9 (patch)
tree7fe31e436f3c8b269e1b63b04218e836fda70741 /unix/tclUnixThrd.c
parent106e32fff09887a477e59692fb31c0b46e0227cc (diff)
downloadtcl-effb33b079561dbc4c3dce1f92f78bb618fbbbc9.zip
tcl-effb33b079561dbc4c3dce1f92f78bb618fbbbc9.tar.gz
tcl-effb33b079561dbc4c3dce1f92f78bb618fbbbc9.tar.bz2
* unix/tclUnixThrd.c (TclpReaddir):
* unix/tclUnixPort.h: update to Bug 689100 patch to ensure that there is a defined value of MAXNAMLEN (aka NAME_MAX in POSIX) and that we have some buffer allocated.
Diffstat (limited to 'unix/tclUnixThrd.c')
-rw-r--r--unix/tclUnixThrd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index 28267f4..ebfd322 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -25,9 +25,7 @@ typedef struct ThreadSpecificData {
struct tm ltbuf;
struct {
Tcl_DirEntry ent;
-#ifdef NAME_MAX /* if not, dirent *better* have room for name */
- char name[NAME_MAX+1];
-#endif
+ char name[MAXNAMLEN+1];
} rdbuf;
} ThreadSpecificData;