summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools_str.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2015-03-28 00:37:08 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2015-03-28 00:37:08 (GMT)
commit6f75afd15ef87c7075512fa76422369320828717 (patch)
tree1a9c4c5d8f1685668a049a6f261f1eef2bcfe039 /tools/lib/h5tools_str.c
parent68decbbc42e7b267c1301d2bd98c47014648dff8 (diff)
downloadhdf5-6f75afd15ef87c7075512fa76422369320828717.zip
hdf5-6f75afd15ef87c7075512fa76422369320828717.tar.gz
hdf5-6f75afd15ef87c7075512fa76422369320828717.tar.bz2
[svn-r26635] Description:
Bring r26651 from autotools_rework branch to trunk: Remove the VSNPRINTF_WORKS macro, it's working around bugs in old SGI & HP compilers. Tested on: Linux/32 2.6.18 (jam) w/serial & parallel (Daily tested on branch for 2+ days)
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 f4302a9..2603984 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;
}