summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-02-24 22:25:15 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-02-24 22:25:15 (GMT)
commit9cb572cb73d5109640831dca8e646352eb27e09c (patch)
tree1613f6fef2c6014354c6f97eb83c4f002644262a /tools/lib
parentb8a613b64bb56dddced36965372c6f5d9b3e06ae (diff)
downloadhdf5-9cb572cb73d5109640831dca8e646352eb27e09c.zip
hdf5-9cb572cb73d5109640831dca8e646352eb27e09c.tar.gz
hdf5-9cb572cb73d5109640831dca8e646352eb27e09c.tar.bz2
[svn-r3512] Purpose:
Bug Fix Description: Some platforms (gondolin) don't necessarily have the vsnprintf function. Solution: Changed it to HDvsnprintf and added a header for H5private to include it... Platforms tested: Linux
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools_str.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c
index 6fd6f85..a119b66 100644
--- a/tools/lib/h5tools_str.c
+++ b/tools/lib/h5tools_str.c
@@ -13,6 +13,7 @@
#include <stdlib.h>
#include <string.h>
+#include "H5private.h"
#include "h5tools.h" /*for h5dump_t structure */
#include "h5tools_str.h" /*function prototypes */
@@ -101,7 +102,7 @@ h5tools_str_append(h5tools_str_t *str/*in,out*/, const char *fmt, ...)
while (1) {
size_t avail = str->nalloc - str->len;
- size_t nchars = (size_t)vsnprintf(str->s + str->len, avail, fmt, ap);
+ size_t nchars = (size_t)HDvsnprintf(str->s + str->len, avail, fmt, ap);
if (nchars < avail) {
/* success */