From 6c722c38466583ff9de207975cd68f60df6eb1c5 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 11 May 2001 17:01:08 -0500 Subject: [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). --- testpar/testphdf5.c | 10 ++++------ 1 file 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 */ -- cgit v0.12