summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2009-08-19 18:29:34 +0000
committerratchov <ratchov@openbsd.org>2009-08-19 18:29:34 +0000
commit0f1919c2ccfb91dbd53777791867974a999d7cbe (patch)
treed76354f9862ae46988ddc2db70156fd4001a0eac
parentHandle the device attributes (DA) escape sequence. (diff)
downloadwireguard-openbsd-0f1919c2ccfb91dbd53777791867974a999d7cbe.tar.xz
wireguard-openbsd-0f1919c2ccfb91dbd53777791867974a999d7cbe.zip
don't try to process -o arguments using the input file list, fixes
midicat crashing sometimes when -o is used
-rw-r--r--usr.bin/aucat/aucat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c
index 699bcd10989..01ee6f3c9e7 100644
--- a/usr.bin/aucat/aucat.c
+++ b/usr.bin/aucat/aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aucat.c,v 1.65 2009/08/19 05:54:15 ratchov Exp $ */
+/* $OpenBSD: aucat.c,v 1.66 2009/08/19 18:29:34 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -795,8 +795,8 @@ midicat_main(int argc, char **argv)
free(fa);
}
while (!SLIST_EMPTY(&ofiles)) {
- fa = SLIST_FIRST(&ifiles);
- SLIST_REMOVE_HEAD(&ifiles, entry);
+ fa = SLIST_FIRST(&ofiles);
+ SLIST_REMOVE_HEAD(&ofiles, entry);
if (strcmp(fa->name, "-") == 0) {
fd = STDOUT_FILENO;
if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0)