diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2012-03-16 15:13:46 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2012-03-16 15:13:46 (GMT) |
commit | 18a18f7f10294cc4621cbf0fd6319425ce10786b (patch) | |
tree | 9e47618ce004c57d4378cb30e3876df37b17f5e4 | |
parent | e37a9c67d85025215445cee71d9242aace3244d2 (diff) | |
download | hdf5-18a18f7f10294cc4621cbf0fd6319425ce10786b.zip hdf5-18a18f7f10294cc4621cbf0fd6319425ce10786b.tar.gz hdf5-18a18f7f10294cc4621cbf0fd6319425ce10786b.tar.bz2 |
[svn-r22082] Description: replaced strncopy with passing path name directly.
-rw-r--r-- | hl/test/test_lite.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/hl/test/test_lite.c b/hl/test/test_lite.c index 4b432d6..59da1f1 100644 --- a/hl/test/test_lite.c +++ b/hl/test/test_lite.c @@ -1991,12 +1991,10 @@ static int test_valid_path(void) /************************************** * CHECK ABSOLUTE PATHS **************************************/ - - strncpy(path, "/G1",3); - if( (path_valid = H5LTpath_valid(file_id, path, TRUE)) != TRUE) { + if( (path_valid = H5LTpath_valid(file_id, "/G1", TRUE)) != TRUE) { goto out; } - + if((path_valid = H5LTpath_valid(file_id, "/G1/DS1", TRUE)) != TRUE) goto out; @@ -2019,7 +2017,6 @@ static int test_valid_path(void) /* check if path exist, but not the object */ if( (path_valid = H5LTpath_valid(file_id, "/G2/G7", FALSE)) != TRUE ) goto out; - /* check if path exist and if the object exists. It should fail * since it is a dangling soft link */ |