lobase

Linux port of OpenBSDs userland.
Log | Files | Refs | README

commit 58aae731d28c42a41282780c728e74e31be56260
parent 7f46b539fefd9fe591f281fcdebd60e7fd82b774
Author: Duncaen <mail@duncano.de>
Date:   Fri, 19 May 2017 17:55:03 +0200

usr.bin/vis: update to OPENBSD_6_1

Diffstat:
usr.bin/vis/vis.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/usr.bin/vis/vis.c b/usr.bin/vis/vis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vis.c,v 1.19 2015/10/09 01:37:09 deraadt Exp $ */ +/* $OpenBSD: vis.c,v 1.20 2016/08/31 09:45:00 jsg Exp $ */ /* $NetBSD: vis.c,v 1.4 1994/12/20 16:13:03 jtc Exp $ */ /*- @@ -111,9 +111,10 @@ main(int argc, char *argv[]) if (*argv) while (*argv) { - if ((fp=fopen(*argv, "r")) != NULL) + if ((fp=fopen(*argv, "r")) != NULL) { process(fp); - else + fclose(fp); + } else warn("%s", *argv); argv++; }