fix length of caldacs array to prevent its overflow when caldac channels
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 12 May 2003 18:00:53 +0000 (18:00 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 12 May 2003 18:00:53 +0000 (18:00 +0000)
>= 12 are used

comedi/drivers/ni_stc.h

index 6fcddeee9cb4cc72068be0f777849b37c7622d3f..ef238336ae739c051ec219652e9d3ebcf087a910 100644 (file)
@@ -745,7 +745,7 @@ static ni_board ni_boards[];
                                                                \
        unsigned int caldac_maxdata_list[MAX_N_CALDACS];        \
        unsigned short ao[2];                                   \
-       unsigned short caldacs[12];                             \
+       unsigned short caldacs[MAX_N_CALDACS];                          \
                                                                \
        unsigned short ao_conf[2];                              \
        unsigned short ao_mode1;                                \