summaryrefslogtreecommitdiffstats
path: root/test/tunicode.c
diff options
context:
space:
mode:
authorhdftest <hdftest@hdfgroup.org>2018-09-20 19:59:17 (GMT)
committerhdftest <hdftest@hdfgroup.org>2018-09-20 19:59:17 (GMT)
commit04a2d68778bc978ac62b03b5b5bfa034e2ced7f7 (patch)
tree8eb0dde943224b0caed11dee349862ce7a9aefa6 /test/tunicode.c
parente2f6e6f62f8885e85540c870ff3e3370b7617c79 (diff)
parentd3074fa8bd8cb5eb266741203b68ce9129c2d7dc (diff)
downloadhdf5-04a2d68778bc978ac62b03b5b5bfa034e2ced7f7.zip
hdf5-04a2d68778bc978ac62b03b5b5bfa034e2ced7f7.tar.gz
hdf5-04a2d68778bc978ac62b03b5b5bfa034e2ced7f7.tar.bz2
Merge branch 'develop' of ssh://bitbucket.hdfgroup.org:7999/~hdftest/hdf5_hft into develop
Diffstat (limited to 'test/tunicode.c')
-rw-r--r--test/tunicode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tunicode.c b/test/tunicode.c
index e0e1f24..5a60036 100644
--- a/test/tunicode.c
+++ b/test/tunicode.c
@@ -163,7 +163,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);
+ 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);