projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e873981
)
fix length of caldacs array to prevent its overflow when caldac channels
author
Frank Mori Hess
<fmhess@speakeasy.net>
Mon, 12 May 2003 18:00:53 +0000
(18:00 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Mon, 12 May 2003 18:00:53 +0000
(18:00 +0000)
>= 12 are used
comedi/drivers/ni_stc.h
patch
|
blob
|
history
diff --git
a/comedi/drivers/ni_stc.h
b/comedi/drivers/ni_stc.h
index 6fcddeee9cb4cc72068be0f777849b37c7622d3f..ef238336ae739c051ec219652e9d3ebcf087a910 100644
(file)
--- a/
comedi/drivers/ni_stc.h
+++ b/
comedi/drivers/ni_stc.h
@@
-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; \