From dd5cc739c1b41418c4ce114522ab7304a5c345bd Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Wed, 20 Nov 2002 07:52:49 -0500 Subject: [svn-r6109] *** empty log message *** --- test/tattr.c | 8 ++++---- test/th5s.c | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/tattr.c b/test/tattr.c index f211c5e..f80d478 100644 --- a/test/tattr.c +++ b/test/tattr.c @@ -186,9 +186,9 @@ test_attr_basic_write(void) CHECK(attr_name_size, FAIL, "H5Aget_name"); if(attr_name_size>0) - attr_name = (char*)HDcalloc(attr_name_size+1, sizeof(char)); + attr_name = (char*)HDcalloc((size_t)(attr_name_size+1), sizeof(char)); - ret=H5Aget_name(attr, attr_name_size+1, attr_name); + ret=H5Aget_name(attr, (size_t)(attr_name_size+1), attr_name); CHECK(ret, FAIL, "H5Aget_name"); ret=HDstrcmp(attr_name, ATTR_TMP_NAME); VERIFY(ret, 0, "HDstrcmp"); @@ -221,9 +221,9 @@ test_attr_basic_write(void) CHECK(attr_name_size, FAIL, "H5Aget_name"); if(attr_name_size>0) - attr_name = (char*)HDcalloc(attr_name_size+1, sizeof(char)); + attr_name = (char*)HDcalloc((size_t)(attr_name_size+1), sizeof(char)); - ret=H5Aget_name(attr2, attr_name_size+1, attr_name); + ret=H5Aget_name(attr2, (size_t)(attr_name_size+1), attr_name); CHECK(ret, FAIL, "H5Aget_name"); ret=HDstrcmp(attr_name, ATTR1A_NAME); VERIFY(ret, 0, "HDstrcmp"); 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){ -- cgit v0.12