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:
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
4
xmlIO.c
4
xmlIO.c
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user