summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/aucat/sock.c')
-rw-r--r--usr.bin/aucat/sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/aucat/sock.c b/usr.bin/aucat/sock.c
index 5c7e07d2c7c..6a1c222af97 100644
--- a/usr.bin/aucat/sock.c
+++ b/usr.bin/aucat/sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sock.c,v 1.14 2009/02/06 08:29:35 ratchov Exp $ */
+/* $OpenBSD: sock.c,v 1.15 2009/03/12 07:26:04 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -127,7 +127,7 @@ rsock_opos(struct aproc *p, struct abuf *obuf, int delta)
{
struct sock *f = (struct sock *)p->u.io.file;
- if (!(f->mode & AMSG_PLAY))
+ if (f->mode & AMSG_REC)
return;
f->delta += delta;