1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

off by 1 and stupidity bug fix:

- xmlIO.c: Gary Pennington <Gary.Pennington@uk.sun.com> fix
  for xmlGzfileOpen() bug
Daniel
This commit is contained in:
Daniel Veillard
2001-01-18 15:21:36 +00:00
parent cb126ac009
commit d8aa7cbd18
2 changed files with 7 additions and 2 deletions

View File

@ -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);
}