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