diff options
author | (no author) <(no author)@unknown> | 2004-07-07 15:47:09 +0000 |
---|---|---|
committer | (no author) <(no author)@unknown> | 2004-07-07 15:47:09 +0000 |
commit | b8ff5545af62e29e0ab0d1d2f6036d6cbc3e1d86 (patch) | |
tree | 5a688b74bb444d61d4b7cc2211d3c74de3b1b69d /file_io/os2/filesys.c | |
parent | 90d773fa9ce5c750a045a13443cdc00d1365ac61 (diff) | |
download | apr-APR_1_0_0_RC3.tar.gz apr-APR_1_0_0_RC3.zip |
This commit was manufactured by cvs2svn to create tagAPR_1_0_0_RC3
'APR_1_0_0_RC3'.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/tags/APR_1_0_0_RC3@65267 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/os2/filesys.c')
-rw-r--r-- | file_io/os2/filesys.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/file_io/os2/filesys.c b/file_io/os2/filesys.c index ef597b38e..b323e488d 100644 --- a/file_io/os2/filesys.c +++ b/file_io/os2/filesys.c @@ -94,13 +94,12 @@ apr_status_t filepath_drive_get(char **rootpath, char drive, apr_status_t filepath_root_case(char **rootpath, char *root, apr_pool_t *p) { - if (root[0] && apr_islower(root[0]) && root[1] == ':') { - *rootpath = apr_pstrdup(p, root); - (*rootpath)[0] = apr_toupper((*rootpath)[0]); - } - else { - *rootpath = root; - } + char path[APR_PATH_MAX]; + + strcpy(path, root); + if (path[1] == ':') + path[0] = apr_toupper(path[0]); + *rootpath = apr_pstrdup(p, path); return APR_SUCCESS; } |