1
0
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:
Daniel Veillard
2000-10-12 23:26:32 +00:00
parent c2df4cde4e
commit 2f971a26da
4 changed files with 114 additions and 81 deletions

View File

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