fix data_len bug
authorDavid Schleef <ds@schleef.org>
Tue, 14 Mar 2000 01:17:20 +0000 (01:17 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 14 Mar 2000 01:17:20 +0000 (01:17 +0000)
comedi/kcomedilib/kcomedilib_main.c

index 334acc19c920b912f24c5ad029885eb37eab2210..009e2619051c218e366cf6c09006493ee471aaa1 100644 (file)
@@ -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
        }