diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-12-20 16:28:00 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-12-20 16:28:00 (GMT) |
commit | 1aa2c22264c70dcbff7cfefef08a6b588261b27e (patch) | |
tree | 78d86534db2a054268fe8d91fa6b7fd47d834fa8 | |
parent | 6ad0946b639a98b10203b96dceaa85747f7c3067 (diff) | |
download | hdf5-1aa2c22264c70dcbff7cfefef08a6b588261b27e.zip hdf5-1aa2c22264c70dcbff7cfefef08a6b588261b27e.tar.gz hdf5-1aa2c22264c70dcbff7cfefef08a6b588261b27e.tar.bz2 |
HDFFV-10307 Add HDtupper() call for Windows drive
-rw-r--r-- | src/H5system.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5system.c b/src/H5system.c index be21d83..398ffee 100644 --- a/src/H5system.c +++ b/src/H5system.c @@ -782,7 +782,7 @@ H5_build_extpath(const char *name, char **extpath /*out*/) * Unix: does not apply */ if(H5_CHECK_ABS_DRIVE(name)) { - drive = name[0] - 'A' + 1; + drive = HDtoupper(name[0]) - 'A' + 1; retcwd = HDgetdcwd(drive, cwdpath, MAX_PATH_LEN); HDstrncpy(new_name, &name[2], name_len); } /* end if */ @@ -876,7 +876,7 @@ H5_combine_path(const char* path1, const char* path2, char **full_name /*out*/) if(NULL == (*full_name = (char *)H5MM_strdup(path2))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed") - } /* end if */ + } /* end if */ else if(H5_CHECK_ABS_PATH(path2)) { /* On windows path2 is a path absolute name */ |