diff options
author | Quincey Koziol <koziol@koziol.gov> | 2019-07-10 03:15:36 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@koziol.gov> | 2019-07-10 03:15:36 (GMT) |
commit | db7c43d375f6997dfc44d6153e7b015da571a8c9 (patch) | |
tree | 4f2c1e23d42540d4ea86870c29f11c217e2e566e /src/H5PLpath.c | |
parent | 78e13fe8b09f4398519f58552d42651712284c76 (diff) | |
download | hdf5-db7c43d375f6997dfc44d6153e7b015da571a8c9.zip hdf5-db7c43d375f6997dfc44d6153e7b015da571a8c9.tar.gz hdf5-db7c43d375f6997dfc44d6153e7b015da571a8c9.tar.bz2 |
Updates to warnhist script, along with a few cleanups, and add some comments
to warning cleanups that are a bit obscure.
Diffstat (limited to 'src/H5PLpath.c')
-rw-r--r-- | src/H5PLpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5PLpath.c b/src/H5PLpath.c index 5125839..44d9cb9 100644 --- a/src/H5PLpath.c +++ b/src/H5PLpath.c @@ -673,7 +673,7 @@ H5PL__find_plugin_in_path(const H5PL_search_params_t *search_params, hbool_t *fo size_t len; /* Allocate & initialize the path name */ - len = HDstrlen(dir) + HDstrlen(H5PL_PATH_SEPARATOR) + HDstrlen(dp->d_name) + 5 /*\0*/; + len = HDstrlen(dir) + HDstrlen(H5PL_PATH_SEPARATOR) + HDstrlen(dp->d_name) + 1 /*\0*/ + 4; /* Extra "+4" to quiet GCC warning - 2019/07/05, QAK */ if (NULL == (path = (char *)H5MM_calloc(len))) HGOTO_ERROR(H5E_PLUGIN, H5E_CANTALLOC, FAIL, "can't allocate memory for path") |