mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
Another patch from Wayne Davison:
- nanoftp.c nanohttp.c xmlIO.c: Win32 patch nanoftp code work now Daniel
This commit is contained in:
6
xmlIO.c
6
xmlIO.c
@ -374,7 +374,7 @@ xmlGzfileOpen (const char *filename) {
|
||||
gzFile fd;
|
||||
|
||||
if (!strcmp(filename, "-")) {
|
||||
fd = gzdopen (fileno(stdin), "r");
|
||||
fd = gzdopen(fileno(stdin), "rb");
|
||||
return((void *) fd);
|
||||
}
|
||||
|
||||
@ -385,7 +385,7 @@ xmlGzfileOpen (const char *filename) {
|
||||
else
|
||||
path = filename;
|
||||
|
||||
fd = gzopen(filename, "r");
|
||||
fd = gzopen(filename, "rb");
|
||||
return((void *) fd);
|
||||
}
|
||||
|
||||
@ -405,7 +405,7 @@ xmlGzfileOpenW (const char *filename, int compression) {
|
||||
char mode[15];
|
||||
gzFile fd;
|
||||
|
||||
sprintf(mode, "w%d", compression);
|
||||
sprintf(mode, "wb%d", compression);
|
||||
if (!strcmp(filename, "-")) {
|
||||
fd = gzdopen(1, mode);
|
||||
return((void *) fd);
|
||||
|
Reference in New Issue
Block a user