=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/aucat/aucat.c,v retrieving revision 1.65 retrieving revision 1.66 diff -u -r1.65 -r1.66 --- src/usr.bin/aucat/aucat.c 2009/08/19 05:54:15 1.65 +++ src/usr.bin/aucat/aucat.c 2009/08/19 18:29:34 1.66 @@ -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 * @@ -795,8 +795,8 @@ 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)