summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-11-24 15:53:55 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-11-24 15:53:55 (GMT)
commit0dfd13d13b2587cbdc3388a205159c25eb83588f (patch)
tree9a5b5fea712a6c8a12712762784dc848c548d6e3 /test/h5test.c
parent9db8ce23f6d3014ff6b2901580faa37bdecae4fa (diff)
downloadhdf5-0dfd13d13b2587cbdc3388a205159c25eb83588f.zip
hdf5-0dfd13d13b2587cbdc3388a205159c25eb83588f.tar.gz
hdf5-0dfd13d13b2587cbdc3388a205159c25eb83588f.tar.bz2
[svn-r946] Changes since 19981121
---------------------- ./src/H5Tconv.c With my poor eyesight I missed the definitions of SCHAR_MIN and SCHAR_MAX in <limits.h> and used CHAR_MIN and CHAR_MAX incorrectly. I changed all occurrences of the latter to the former and the new hardware integer type conversions now work on Irix. ./configure.in ./configure [REGENERATED] ./src/H5config.h.in [REGENERATED] ./src/H5private.h ./src/H5.c ./test/h5test.c Added a wrapper for HDsnprintf() that just calls sprintf() if snprintf() isn't available. ./MANIFEST Added Paul's new h5toh4 files.
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 4144455..0e2ef53 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -94,15 +94,15 @@ h5_cleanup(hid_t fapl)
break; /*nothing to remove*/
case H5F_LOW_SPLIT:
- snprintf(temp, sizeof temp, "%s.raw", filename);
+ HDsnprintf(temp, sizeof temp, "%s.raw", filename);
remove(temp);
- snprintf(temp, sizeof temp, "%s.meta", filename);
+ HDsnprintf(temp, sizeof temp, "%s.meta", filename);
remove(temp);
break;
case H5F_LOW_FAMILY:
for (j=0; /*void*/; j++) {
- snprintf(temp, sizeof temp, filename, j);
+ HDsnprintf(temp, sizeof temp, filename, j);
if (access(temp, F_OK)<0) break;
remove(temp);
}
@@ -180,7 +180,7 @@ h5_fixname(const char *basename, hid_t fapl, char *fullname, size_t size)
/* Prepend the prefix value to the base name */
if (prefix && *prefix) {
- if (snprintf(fullname, size, "%s/%s", prefix, basename)==(int)size) {
+ if (HDsnprintf(fullname, size, "%s/%s", prefix, basename)==(int)size) {
return NULL; /*buffer is too small*/
}
} else if (strlen(basename)>=size) {