aboutsummaryrefslogtreecommitdiffstats
path: root/xmlIO.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-05-31 18:43:43 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-05-31 18:43:43 +0000
commit3c2758d3f12564f27ea747eeaad61d7fc8faee03 (patch)
treefb81f664b4db33bcc1f32ffe76176f6a9cebbd3a /xmlIO.c
parent2004242728b3d37f1b98e146a7cb40098b79d888 (diff)
downloadandroid_external_libxml2-3c2758d3f12564f27ea747eeaad61d7fc8faee03.tar.gz
android_external_libxml2-3c2758d3f12564f27ea747eeaad61d7fc8faee03.tar.bz2
android_external_libxml2-3c2758d3f12564f27ea747eeaad61d7fc8faee03.zip
- xmlIO.c: Gary Pennington spotted a few troubles with file:///
Daniel
Diffstat (limited to 'xmlIO.c')
-rw-r--r--xmlIO.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmlIO.c b/xmlIO.c
index 43df99fb..fba4b545 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -238,7 +238,7 @@ xmlFileOpen (const char *filename) {
if (!strncmp(filename, "file://localhost", 16))
path = &filename[16];
else if (!strncmp(filename, "file:///", 8))
- path = &filename[8];
+ path = &filename[7];
else
path = filename;
@@ -277,7 +277,7 @@ xmlFileOpenW (const char *filename) {
if (!strncmp(filename, "file://localhost", 16))
path = &filename[16];
else if (!strncmp(filename, "file:///", 8))
- path = &filename[8];
+ path = &filename[7];
else
path = filename;
@@ -419,7 +419,7 @@ xmlGzfileOpenW (const char *filename, int compression) {
if (!strncmp(filename, "file://localhost", 16))
path = &filename[16];
else if (!strncmp(filename, "file:///", 8))
- path = &filename[8];
+ path = &filename[7];
else
path = filename;