fixed a bug I made
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 16 May 2002 16:09:44 +0000 (16:09 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 16 May 2002 16:09:44 +0000 (16:09 +0000)
comedi/comedi_fops.c

index 66e1a342b78df97ee8e3e7cd0fd07984b44ced8f..0cc81a907bd8e9db9a74b01ed9ec84d2236ac022 100644 (file)
@@ -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;