summaryrefslogtreecommitdiffstats
path: root/test/trefstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/trefstr.c')
-rw-r--r--test/trefstr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/trefstr.c b/test/trefstr.c
index 9019ce6..3fe8e99 100644
--- a/test/trefstr.c
+++ b/test/trefstr.c
@@ -375,8 +375,8 @@ test_refstr_acat(void)
VERIFY(cmp, 0, "HDstrcmp");
/* Append a large string to ref-counted string */
- large_str = HDmalloc(1024);
- CHECK_PTR(large_str, "HDmalloc");
+ large_str = malloc(1024);
+ CHECK_PTR(large_str, "malloc");
HDmemset(large_str, 'a', 1024);
large_str[1023] = '\0';
ret = H5RS_acat(rs, large_str);
@@ -386,8 +386,8 @@ test_refstr_acat(void)
s = H5RS_get_str(rs);
CHECK_PTR(s, "H5RS_get_str");
HDsnprintf(buf, sizeof(buf), "%s", "foobar");
- large_str2 = HDmalloc(1024 + 6);
- CHECK_PTR(large_str2, "HDmalloc");
+ large_str2 = malloc(1024 + 6);
+ CHECK_PTR(large_str2, "malloc");
HDstrcpy(large_str2, "foobar");
HDmemset(&large_str2[6], 'a', 1024);
large_str2[1029] = '\0';
@@ -399,8 +399,8 @@ test_refstr_acat(void)
CHECK(ret, FAIL, "H5RS_decr");
/* Free large strings */
- HDfree(large_str);
- HDfree(large_str2);
+ free(large_str);
+ free(large_str2);
} /* end test_refstr_acat() */
/****************************************************************