Fix buffer overrun problem
authorDavid Schleef <ds@schleef.org>
Tue, 10 Jul 2001 21:28:14 +0000 (21:28 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 10 Jul 2001 21:28:14 +0000 (21:28 +0000)
comedi/drivers/daqboard2000.c

index 50cf8790cb05ae26e6732e253f5088710bac2b80..50213f9fa7643efaab5bf65feab2a7212b32758d 100644 (file)
@@ -729,7 +729,7 @@ static int daqboard2000_attach(comedi_device *dev, comedi_devconfig *it)
   */
   if(it->options[0] && it->options[1]){
     void *ptr;
-    int size = it->options[1];
+    unsigned int size = it->options[1];
 
     /* Note:  using copy_from_user here is a hack.  I would prefer
      * to have a generic solution for copying extended data at