bjh 01/11/17 18:25:47
Modified: file_io/win32 filepath.c
Log:
Fix result of apr_filepath_root() when given a drive-less absolute path. Was
returning the character AFTER the leading slash as the root component instead
of the leading slash itself.
Revision Changes Path
1.19 +1 -1 apr/file_io/win32/filepath.c
Index: filepath.c
===================================================================
RCS file: /home/cvs/apr/file_io/win32/filepath.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- filepath.c 2001/10/10 19:28:58 1.18
+++ filepath.c 2001/11/18 02:25:46 1.19
@@ -297,7 +297,7 @@
/* Left with a path of '/', what drive are we asking about?
*/
- *inpath = ++testpath;
+ *inpath = testpath + 1;
newpath = apr_palloc(p, 2);
if (flags & APR_FILEPATH_TRUENAME)
newpath[0] = seperator[0];