summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_str.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2015-03-23 22:16:28 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2015-03-23 22:16:28 (GMT)
commit61b5fa8e2d69ce651ba4dd4757350be347c660a6 (patch)
tree68d90395fc95c994acc4f81f5618494a1c5475d3 /tools/lib/h5tools_str.c
parentb424ce1b3f357b50cea356a00d61c46d67345926 (diff)
downloadhdf5-61b5fa8e2d69ce651ba4dd4757350be347c660a6.zip
hdf5-61b5fa8e2d69ce651ba4dd4757350be347c660a6.tar.gz
hdf5-61b5fa8e2d69ce651ba4dd4757350be347c660a6.tar.bz2
[svn-r26551] Description:
Remove the VSNPRINTF_WORKS macro, it's working around bugs in old SGI & HP compilers. Tested on: MacOSX/64 10.10.2 (amazon) w/serial & parallel (h5committest not required on this branch)
Diffstat (limited to 'tools/lib/h5tools_str.c')
-rw-r--r--tools/lib/h5tools_str.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index 3160cfa..6b94b68 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -155,11 +155,7 @@ h5tools_str_append(h5tools_str_t *str/*in,out*/, const char *fmt, ...)
* to lack of buffer size, so try one more time after realloc more
* buffer size before return NULL.
*/
- if (nchars < 0
-#ifndef H5_VSNPRINTF_WORKS
- && (HDstrlen(str->s) < str->nalloc)
-#endif
- ) {
+ if (nchars < 0) {
/* failure, such as bad format */
return NULL;
}