diff options
Diffstat (limited to 'zaptel.c')
-rw-r--r-- | zaptel.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1811,7 +1811,7 @@ static ssize_t zt_chan_read(struct file *file, char *usrbuf, size_t count, int u chan->readidx[res] = 0; chan->readn[res] = 0; oldbuf = res; - res = (chan->outreadbuf + 1) % chan->numbufs; + chan->outreadbuf = (res + 1) % chan->numbufs; if (chan->outreadbuf == chan->inreadbuf) { /* Out of stuff */ chan->outreadbuf = -1; |