From 8df46f7664cbdbfe14fd2ad305bf0358a048786d Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 14 Mar 2000 01:17:20 +0000 Subject: [PATCH] fix data_len bug --- comedi/kcomedilib/kcomedilib_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/kcomedilib/kcomedilib_main.c b/comedi/kcomedilib/kcomedilib_main.c index 334acc19..009e2619 100644 --- a/comedi/kcomedilib/kcomedilib_main.c +++ b/comedi/kcomedilib/kcomedilib_main.c @@ -312,7 +312,7 @@ static int comedi_trig_ioctl_mode0(comedi_device *dev,comedi_subdevice *s,comedi ret=-EINVAL; goto cleanup; #else - it->data_len=it->n_chan*it->n; + it->data_len=it->n_chan*it->n*sizeof(sample_t); rt_printk("comedi: warning: trig->data_len not set\n"); #endif } -- 2.26.2