diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2012-02-24 15:32:36 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2012-02-24 15:32:36 (GMT) |
commit | cec338c647aa3dc46f93800c1263f6a75b2c6728 (patch) | |
tree | 0529df140d6eb7c25e11905a3cb2126e0ca75af8 /tools/h5dump/h5dump_xml.c | |
parent | 5b1c9ffe2d7ba0dd906836cb844c7504aa96aa58 (diff) | |
download | hdf5-cec338c647aa3dc46f93800c1263f6a75b2c6728.zip hdf5-cec338c647aa3dc46f93800c1263f6a75b2c6728.tar.gz hdf5-cec338c647aa3dc46f93800c1263f6a75b2c6728.tar.bz2 |
[svn-r21981] Correct HD prefix in tools for fprintf
Checked for HD support.
Diffstat (limited to 'tools/h5dump/h5dump_xml.c')
-rw-r--r-- | tools/h5dump/h5dump_xml.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/h5dump/h5dump_xml.c b/tools/h5dump/h5dump_xml.c index b92ccdb..94e4d28 100644 --- a/tools/h5dump/h5dump_xml.c +++ b/tools/h5dump/h5dump_xml.c @@ -601,27 +601,27 @@ xml_escape_the_name(const char *str) for (i = 0; i < len; i++) { if (*cp == '\'') { - strncpy(ncp, apos, HDstrlen(apos)); + HDstrncpy(ncp, apos, HDstrlen(apos)); ncp += HDstrlen(apos); cp++; } else if (*cp == '<') { - strncpy(ncp, lt, HDstrlen(lt)); + HDstrncpy(ncp, lt, HDstrlen(lt)); ncp += HDstrlen(lt); cp++; } else if (*cp == '>') { - strncpy(ncp, gt, HDstrlen(gt)); + HDstrncpy(ncp, gt, HDstrlen(gt)); ncp += HDstrlen(gt); cp++; } else if (*cp == '\"') { - strncpy(ncp, quote, HDstrlen(quote)); + HDstrncpy(ncp, quote, HDstrlen(quote)); ncp += HDstrlen(quote); cp++; } else if (*cp == '&') { - strncpy(ncp, amp, HDstrlen(amp)); + HDstrncpy(ncp, amp, HDstrlen(amp)); ncp += HDstrlen(amp); cp++; } @@ -708,22 +708,22 @@ xml_escape_the_string(const char *str, int slen) *ncp++ = *cp++; } else if (*cp == '\'') { - strncpy(ncp, apos, HDstrlen(apos)); + HDstrncpy(ncp, apos, HDstrlen(apos)); ncp += HDstrlen(apos); cp++; } else if (*cp == '<') { - strncpy(ncp, lt, HDstrlen(lt)); + HDstrncpy(ncp, lt, HDstrlen(lt)); ncp += HDstrlen(lt); cp++; } else if (*cp == '>') { - strncpy(ncp, gt, HDstrlen(gt)); + HDstrncpy(ncp, gt, HDstrlen(gt)); ncp += HDstrlen(gt); cp++; } else if (*cp == '&') { - strncpy(ncp, amp, HDstrlen(amp)); + HDstrncpy(ncp, amp, HDstrlen(amp)); ncp += HDstrlen(amp); cp++; } |