summaryrefslogtreecommitdiffstats
path: root/test/th5s.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-11-20 12:52:49 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-11-20 12:52:49 (GMT)
commitdd5cc739c1b41418c4ce114522ab7304a5c345bd (patch)
tree66f17c9ed376293ae62c154719a84187288bf404 /test/th5s.c
parentef92748be63cd0942846b5201fe72e7eb12e7d20 (diff)
downloadhdf5-dd5cc739c1b41418c4ce114522ab7304a5c345bd.zip
hdf5-dd5cc739c1b41418c4ce114522ab7304a5c345bd.tar.gz
hdf5-dd5cc739c1b41418c4ce114522ab7304a5c345bd.tar.bz2
[svn-r6109] *** empty log message ***
Diffstat (limited to 'test/th5s.c')
-rw-r--r--test/th5s.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/th5s.c b/test/th5s.c
index 917ac2e..ddfd060 100644
--- a/test/th5s.c
+++ b/test/th5s.c
@@ -158,12 +158,12 @@ test_h5s_basic(void)
*/
{
char testfile[512]="";
- char *srcdir = getenv("srcdir");
- if (srcdir && ((strlen(srcdir) + strlen(TESTFILE) + 1) < sizeof(testfile))){
- strcpy(testfile, srcdir);
- strcat(testfile, "/");
+ char *srcdir = HDgetenv("srcdir");
+ if (srcdir && ((HDstrlen(srcdir) + strlen(TESTFILE) + 1) < sizeof(testfile))){
+ HDstrcpy(testfile, srcdir);
+ HDstrcat(testfile, "/");
}
- strcat(testfile, TESTFILE);
+ HDstrcat(testfile, TESTFILE);
fid1 = H5Fopen(testfile, H5F_ACC_RDONLY, H5P_DEFAULT);
CHECK_I(fid1, "H5Fopen");
if (fid1 >= 0){