openbsd-ports/www/w3m/patches/patch-file_c
sturm 7f44ebf8ab use fclose() on fdopen()'ed file streams instead of pclose()
from TAKAHASHI Tamotsu in ports/5010
2006-02-10 18:54:58 +00:00

13 lines
394 B
Plaintext

$OpenBSD: patch-file_c,v 1.3 2006/02/10 18:54:58 sturm Exp $
--- file.c.orig Thu Feb 9 21:04:17 2006
+++ file.c Thu Feb 9 21:04:30 2006
@@ -7891,7 +7891,7 @@ uncompress_stream(URLFile *uf, char **sr
uf->scheme = SCM_LOCAL;
}
UFhalfclose(uf);
- uf->stream = newFileStream(f1, (void (*)())pclose);
+ uf->stream = newFileStream(f1, (void (*)())fclose);
}
static FILE *