From c0b2724d4db12e75ef5e297900b088f1839886cd Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 4 Feb 2013 09:42:21 -0500 Subject: [svn-r23223] Description: Revert use of snprintf() for sprintf(), as it is not supported on Windows. (And file a bug, http://jira.hdfgroup.uiuc.edu/browse/HDFFV-8302, for the general problem) Tested: Mac OSX/64 10.8.2 (amazon) --- src/H5FDmulti.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/H5FDmulti.c b/src/H5FDmulti.c index c2701c4..5bdfbbe 100644 --- a/src/H5FDmulti.c +++ b/src/H5FDmulti.c @@ -336,7 +336,7 @@ H5Pset_fapl_split(hid_t fapl, const char *meta_ext, hid_t meta_plist_id, meta_name[sizeof(meta_name) - 1] = '\0'; } else - snprintf(meta_name, sizeof(meta_name), "%%s%s", meta_ext); + sprintf(meta_name, "%%s%s", meta_ext); } else { strncpy(meta_name, "%s.meta", sizeof(meta_name)); @@ -354,7 +354,7 @@ H5Pset_fapl_split(hid_t fapl, const char *meta_ext, hid_t meta_plist_id, raw_name[sizeof(raw_name) - 1] = '\0'; } else - snprintf(raw_name, sizeof(raw_name), "%%s%s", raw_ext); + sprintf(raw_name, "%%s%s", raw_ext); } else { strncpy(raw_name, "%s.raw", sizeof(raw_name)); @@ -488,7 +488,7 @@ H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map, if (!memb_name) { assert(strlen(letters)==H5FD_MEM_NTYPES); for (mt=H5FD_MEM_DEFAULT; mtfa.memb_name[mt], file->name); + sprintf(tmp, file->fa.memb_name[mt], file->name); #ifdef H5FD_MULTI_DEBUG if(file->flags & H5F_ACC_DEBUG) -- cgit v0.12