1
0
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:
Daniel Veillard
2002-08-25 14:39:16 +00:00
parent 42766c0eea
commit b212bbbc88
2 changed files with 8 additions and 0 deletions

View File

@@ -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

View File

@@ -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];