Commit d8aa7cbd authored by Daniel Veillard's avatar Daniel Veillard
Browse files

off by 1 and stupidity bug fix:

- xmlIO.c: Gary Pennington <Gary.Pennington@uk.sun.com> fix
  for xmlGzfileOpen() bug
Daniel
parent cb126ac0
Thu Jan 18 16:19:47 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* xmlIO.c: Gary Pennington <Gary.Pennington@uk.sun.com> fix
for xmlGzfileOpen() bug
Thu Jan 18 13:11:50 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* xpath.c: removed an error found by XSLT usage
......
......@@ -400,11 +400,11 @@ xmlGzfileOpen (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;
fd = gzopen(filename, "rb");
fd = gzopen(path, "rb");
return((void *) fd);
}
......
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