summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-05-05 15:56:36 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-05-05 15:56:36 (GMT)
commit84effee753eb5aeacfd786bb5ef146f62226e5fe (patch)
tree367f471d6da5a09987a79692603d1f6e11db96d9
parentc5e00232ffb9f13177fec21c1b425418dc2707f1 (diff)
downloadhdf5-84effee753eb5aeacfd786bb5ef146f62226e5fe.zip
hdf5-84effee753eb5aeacfd786bb5ef146f62226e5fe.tar.gz
hdf5-84effee753eb5aeacfd786bb5ef146f62226e5fe.tar.bz2
[svn-r20752] Windows does not have snprintf, need to use HDsnprintf.
-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 {