diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-08-28 18:32:01 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-08-28 18:32:01 (GMT) |
commit | d8ec4df92880d98907b12af8fc9fff86e0631270 (patch) | |
tree | c2ed10db6ddf23bc4f366260cdf5cf7663ae47be /test/tunicode.c | |
parent | ebc3d3eda5b9e5c3090322e19898e47141efeadd (diff) | |
download | hdf5-d8ec4df92880d98907b12af8fc9fff86e0631270.zip hdf5-d8ec4df92880d98907b12af8fc9fff86e0631270.tar.gz hdf5-d8ec4df92880d98907b12af8fc9fff86e0631270.tar.bz2 |
Update system commands with HD prefix and whitespace
Diffstat (limited to 'test/tunicode.c')
-rw-r--r-- | test/tunicode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tunicode.c b/test/tunicode.c index 85f5af0..e0e1f24 100644 --- a/test/tunicode.c +++ b/test/tunicode.c @@ -164,7 +164,7 @@ void test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string) /* Fill the buffer with two copies of the UTF-8 string, each with a * terminating NULL. It will look like "abcdefg\0abcdefg\0". */ strncpy(buf, new_string, big_len); - strncpy(&buf[big_len], new_string, big_len); + HDstrncpy(&buf[big_len], new_string, big_len); ret = H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT); CHECK(ret, FAIL, "H5Tconvert"); @@ -226,8 +226,8 @@ void test_strpad(hid_t H5_ATTR_UNUSED fid, const char *string) /* Fill the buffer with two copies of the UTF-8 string. * It will look like "abcdefghabcdefgh". */ - strncpy(buf, new_string, big_len); - strncpy(&buf[big_len], new_string, big_len); + HDstrncpy(buf, new_string, big_len); + HDstrncpy(&buf[big_len], new_string, big_len); ret = H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT); CHECK(ret, FAIL, "H5Tconvert"); |