summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-04-21 15:58:32 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-04-21 15:58:32 (GMT)
commita995a63085d88e1a633770536efeff5b01569445 (patch)
treea254f12fbb924aeed97272c9b9a5d89a718e3d91
parentaeb1500897862ab8e0c500bd0a6986d229c4e5f2 (diff)
downloadhdf5-a995a63085d88e1a633770536efeff5b01569445.zip
hdf5-a995a63085d88e1a633770536efeff5b01569445.tar.gz
hdf5-a995a63085d88e1a633770536efeff5b01569445.tar.bz2
HDFFV-9655 fix test and some warnings
-rw-r--r--src/H5PL.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5PL.c b/src/H5PL.c
index bca680e..2397bbd 100644
--- a/src/H5PL.c
+++ b/src/H5PL.c
@@ -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)