From 71db531a9ee818d643893e19a1249ba11cb1a87a Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 16 May 2002 16:09:44 +0000 Subject: [PATCH] fixed a bug I made --- comedi/comedi_fops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index 66e1a342..0cc81a90 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -1351,7 +1351,7 @@ static ssize_t comedi_write_v22(struct file *file,const char *buf,size_t nbytes, m = async->buf_int_ptr - async->buf_user_ptr; if( m < 0 ) - m = async->data_len - async->buf_user_count; + m = async->data_len - async->buf_user_ptr; if(m < n) n = m; -- 2.26.2