diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-11-20 12:52:49 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-11-20 12:52:49 (GMT) |
commit | dd5cc739c1b41418c4ce114522ab7304a5c345bd (patch) | |
tree | 66f17c9ed376293ae62c154719a84187288bf404 /test | |
parent | ef92748be63cd0942846b5201fe72e7eb12e7d20 (diff) | |
download | hdf5-dd5cc739c1b41418c4ce114522ab7304a5c345bd.zip hdf5-dd5cc739c1b41418c4ce114522ab7304a5c345bd.tar.gz hdf5-dd5cc739c1b41418c4ce114522ab7304a5c345bd.tar.bz2 |
[svn-r6109] *** empty log message ***
Diffstat (limited to 'test')
-rw-r--r-- | test/tattr.c | 8 | ||||
-rw-r--r-- | 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){ |