diff options
Diffstat (limited to 'tools/h5ls')
-rw-r--r-- | tools/h5ls/h5ls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c index 04a9371..d34cae0 100644 --- a/tools/h5ls/h5ls.c +++ b/tools/h5ls/h5ls.c @@ -1764,7 +1764,7 @@ udlink_open(hid_t location, const char *name) if ((buf = HDmalloc(linfo.u.link_size))==NULL) goto error; if (H5Lget_linkval (location, name, sizeof(buf), buf, H5P_DEFAULT)<0) goto error; - if(H5Lunpack_elink_val(buf, &filename, &path) < 0) goto error; + if(H5Lunpack_elink_val(buf, linfo.u.link_size, &filename, &path) < 0) goto error; fputs("file: ", stdout); fputs(filename, stdout); fputs(" path: ", stdout); |