aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Quirk <richard@quirk.es>2015-07-25 12:49:57 +0000
committerRichard Quirk <richard@quirk.es>2015-07-25 12:49:57 +0000
commit34af5c2465d962f4b00562a31bece4fc2f9d730e (patch)
tree6daa8dcdba3253f261213e704dad89c6646183ef
parentUpdate ChangeLog (diff)
downloadw3m-34af5c2465d962f4b00562a31bece4fc2f9d730e.tar.gz
w3m-34af5c2465d962f4b00562a31bece4fc2f9d730e.zip
use pclose for pipe
Diffstat (limited to '')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 605fc78..0b13a99 100644
--- a/file.c
+++ b/file.c
@@ -8540,7 +8540,7 @@ lessopen_stream(char *path)
}
c = getc(fp);
if (c == EOF) {
- fclose(fp);
+ pclose(fp);
return NULL;
}
ungetc(c, fp);