diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-04-21 15:58:32 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-04-21 15:58:32 (GMT) |
commit | a995a63085d88e1a633770536efeff5b01569445 (patch) | |
tree | a254f12fbb924aeed97272c9b9a5d89a718e3d91 | |
parent | aeb1500897862ab8e0c500bd0a6986d229c4e5f2 (diff) | |
download | hdf5-a995a63085d88e1a633770536efeff5b01569445.zip hdf5-a995a63085d88e1a633770536efeff5b01569445.tar.gz hdf5-a995a63085d88e1a633770536efeff5b01569445.tar.bz2 |
HDFFV-9655 fix test and some warnings
-rw-r--r-- | src/H5PL.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -333,7 +333,7 @@ H5PL__env_strdup(const char *plpath) HGOTO_ERROR(H5E_PLUGIN, H5E_CANTALLOC, NULL, "can't allocate memory for plugin path") HDstrncpy(tempbuf, H5PL_executable_path_g, ExecPathLength); - HDstrncpy(tempbuf+ExecPathLength, plpath+2, PluginPathLength-1); + HDstrncpy(tempbuf+ExecPathLength, plpath+1, PluginPathLength-1); tempbuf[ExecPathLength + PluginPathLength] = '\0'; ret_value = H5MM_strdup(tempbuf); tempbuf = (char *)H5MM_xfree(tempbuf); @@ -685,7 +685,7 @@ ssize_t H5PLget(unsigned int index, char *pathname/*out*/, size_t size) { ssize_t ret_value = 0; /* Return value */ - ssize_t len = 0; /* Length of pathname */ + size_t len = 0; /* Length of pathname */ char *dl_path = NULL; FUNC_ENTER_API(FAIL) @@ -704,7 +704,7 @@ H5PLget(unsigned int index, char *pathname/*out*/, size_t size) } /* end if */ /* Set return value */ - ret_value = len; + ret_value = (ssize_t)len; done: FUNC_LEAVE_API(ret_value) |