Commit b212bbbc authored by Daniel Veillard's avatar Daniel Veillard

handle Windows sepecific file://localhost/ semantic ... Daniel

* xmlIO.c: handle Windows sepecific file://localhost/ semantic ...
Daniel
parent 42766c0e
Sun Aug 25 16:38:05 CEST 2002 Daniel Veillard <daniel@veillard.com>
* xmlIO.c: handle Windows sepecific file://localhost/ semantic ...
Thu Aug 22 22:03:19 CEST 2002 Daniel Veillard <daniel@veillard.com>
* xpath.c: possible mem leak patch from Jason Adams
......
......@@ -297,7 +297,11 @@ xmlFileOpen (const char *filename) {
}
if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost", 16))
#if defined (_WIN32) && !defined(__CYGWIN__)
path = &filename[17];
#else
path = &filename[16];
#endif
else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
#if defined (_WIN32) && !defined(__CYGWIN__)
path = &filename[8];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment