summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-05-05 15:57:36 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-05-05 15:57:36 (GMT)
commitf9f3c73173e09fc9d38ea73cc6bd8c972daad7d3 (patch)
tree3186a2ae8989e01a8c8e03dc464f3f8d950566fd /tools
parentd8781b5143ddad13f4825eb2f011e6acf6bf06b7 (diff)
downloadhdf5-f9f3c73173e09fc9d38ea73cc6bd8c972daad7d3.zip
hdf5-f9f3c73173e09fc9d38ea73cc6bd8c972daad7d3.tar.gz
hdf5-f9f3c73173e09fc9d38ea73cc6bd8c972daad7d3.tar.bz2
[svn-r20753] Windows does not have snprintf, need to use HDsnprintf.
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/h5tools_str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index 19d251b..9b7e8f2 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -671,8 +671,8 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai
/* Build default formats for long long types */
if (!fmt_llong[0]) {
- snprintf(fmt_llong, sizeof(fmt_llong), "%%%sd", H5_PRINTF_LL_WIDTH);
- snprintf(fmt_ullong, sizeof(fmt_ullong), "%%%su", H5_PRINTF_LL_WIDTH);
+ HDsnprintf(fmt_llong, sizeof(fmt_llong), "%%%sd", H5_PRINTF_LL_WIDTH);
+ HDsnprintf(fmt_ullong, sizeof(fmt_ullong), "%%%su", H5_PRINTF_LL_WIDTH);
}
/* Append value depending on data type */
@@ -1254,7 +1254,7 @@ h5tools_escape(char *s/*in,out*/, size_t size)
break;
default:
if (!isprint(s[i])) {
- snprintf(octal, sizeof(octal), "\\%03o", (unsigned char) s[i]);
+ HDsnprintf(octal, sizeof(octal), "\\%03o", (unsigned char) s[i]);
escape = octal;
}
else {