From: David Schleef Date: Tue, 14 Mar 2000 01:17:20 +0000 (+0000) Subject: fix data_len bug X-Git-Tag: r0_7_41~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8df46f7664cbdbfe14fd2ad305bf0358a048786d;p=comedi.git fix data_len bug --- 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 }