The value of filepath is not \0-terminated on return if it's input value
is "//" or "\\".
This can be easily reproduced with the following piece of code:
const char *filepath = "//";
const char *rootpath = NULL;
status = apr_filepath_root( &rootpath, &filepath, APR_FILEPATH_TRUENAME,
pool );
printf( "filepath on return is '%s'", filepath );
Roland