diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-05-11 22:01:08 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-05-11 22:01:08 (GMT) |
commit | 6c722c38466583ff9de207975cd68f60df6eb1c5 (patch) | |
tree | 011ea060db1fe20e885861b344cbc6af9208620b /testpar/testphdf5.c | |
parent | aca9a213a94b6bf0e8164b610b8f5370ae966da3 (diff) | |
download | hdf5-6c722c38466583ff9de207975cd68f60df6eb1c5.zip hdf5-6c722c38466583ff9de207975cd68f60df6eb1c5.tar.gz hdf5-6c722c38466583ff9de207975cd68f60df6eb1c5.tar.bz2 |
[svn-r3913] Purpose:
Bug Fix
Description:
FILENAME_MAX is short on some systems. It's better to use PATH_MAX
which tends to be longer (we hope).
Solution:
Removed FILENAME_MAX and replaced it with PATH_MAX instead.
Platforms tested:
Skinner (SDSC HP N9000).
Diffstat (limited to 'testpar/testphdf5.c')
-rw-r--r-- | testpar/testphdf5.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c index d6cf99f..e67de35 100644 --- a/testpar/testphdf5.c +++ b/testpar/testphdf5.c @@ -6,9 +6,9 @@ #include "testphdf5.h" -#ifndef FILENAME_MAX -#define FILENAME_MAX 512 -#endif +#ifndef PATH_MAX +#define PATH_MAX 512 +#endif /* !PATH_MAX */ /* global variables */ int dim0 = DIM0; @@ -32,11 +32,9 @@ const char *FILENAME[5]={ "ParaEg3", "ParaMdset", NULL}; -char filenames[5][FILENAME_MAX]; +char filenames[5][PATH_MAX]; hid_t fapl; /* file access property list */ - - #ifdef USE_PAUSE /* pause the process for a moment to allow debugger to attach if desired. */ /* Will pause more if greenlight file is not persent but will eventually */ |