diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-08-04 16:20:10 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-08-04 16:20:10 (GMT) |
commit | 04d72b2c4200c68e9bdaf09b015c62a00c6a12d4 (patch) | |
tree | 01d13ab905b7eb892efe2e038e5a6257c0e95b6e /tools/src/h5dump/h5dump_xml.c | |
parent | c2ba92875edf2e605707cfc322d21916e3f05d22 (diff) | |
download | hdf5-04d72b2c4200c68e9bdaf09b015c62a00c6a12d4.zip hdf5-04d72b2c4200c68e9bdaf09b015c62a00c6a12d4.tar.gz hdf5-04d72b2c4200c68e9bdaf09b015c62a00c6a12d4.tar.bz2 |
HDFFV-10219 and HDFFV-10256 merge from develop
Diffstat (limited to 'tools/src/h5dump/h5dump_xml.c')
-rw-r--r-- | tools/src/h5dump/h5dump_xml.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/src/h5dump/h5dump_xml.c b/tools/src/h5dump/h5dump_xml.c index bb0fd7a..49d4f96 100644 --- a/tools/src/h5dump/h5dump_xml.c +++ b/tools/src/h5dump/h5dump_xml.c @@ -780,20 +780,20 @@ xml_escape_the_string(const char *str, int slen) esc_len = 1; } else if (*cp == '\'') { - HDstrncpy(ncp, apos, ncp_len); esc_len = HDstrlen(apos); + HDstrncpy(ncp, apos, esc_len); } else if (*cp == '<') { - HDstrncpy(ncp, lt, ncp_len); esc_len = HDstrlen(lt); + HDstrncpy(ncp, lt, esc_len); } else if (*cp == '>') { - HDstrncpy(ncp, gt, ncp_len); esc_len = HDstrlen(gt); + HDstrncpy(ncp, gt, esc_len); } else if (*cp == '&') { - HDstrncpy(ncp, amp, ncp_len); esc_len = HDstrlen(amp); + HDstrncpy(ncp, amp, esc_len); } else { *ncp = *cp; |