mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-07 06:43:02 +03:00
handle Windows sepecific file://localhost/ semantic ... Daniel
* xmlIO.c: handle Windows sepecific file://localhost/ semantic ... Daniel
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
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>
|
Thu Aug 22 22:03:19 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* xpath.c: possible mem leak patch from Jason Adams
|
* xpath.c: possible mem leak patch from Jason Adams
|
||||||
|
4
xmlIO.c
4
xmlIO.c
@@ -297,7 +297,11 @@ xmlFileOpen (const char *filename) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost", 16))
|
if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost", 16))
|
||||||
|
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||||
|
path = &filename[17];
|
||||||
|
#else
|
||||||
path = &filename[16];
|
path = &filename[16];
|
||||||
|
#endif
|
||||||
else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
|
else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) {
|
||||||
#if defined (_WIN32) && !defined(__CYGWIN__)
|
#if defined (_WIN32) && !defined(__CYGWIN__)
|
||||||
path = &filename[8];
|
path = &filename[8];
|
||||||
|
Reference in New Issue
Block a user