[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).
This commit is contained in:
Bill Wendling 2001-05-11 17:01:08 -05:00
parent aca9a213a9
commit 6c722c3846

View File

@ -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 */