projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba31175
)
comedi_board_info: increased length of strtmp[]
author
Ian Abbott
<abbotti@mev.co.uk>
Mon, 15 Oct 2012 14:47:46 +0000
(15:47 +0100)
committer
Ian Abbott
<abbotti@mev.co.uk>
Mon, 15 Oct 2012 14:47:46 +0000
(15:47 +0100)
`strtmp` is currently declared as `char strtmp[16]`, but that may be too
short for the calls to `unit_to_desc()` when the type of unit is
unknown. Increase its length to 32.
comedi_board_info/comedi_board_info.c
patch
|
blob
|
history
diff --git
a/comedi_board_info/comedi_board_info.c
b/comedi_board_info/comedi_board_info.c
index 35a66dde780059a752ba9c40551e1db2daa8d595..506669edfde86b89053d7b3f86ecb05d61f3eb92 100644
(file)
--- a/
comedi_board_info/comedi_board_info.c
+++ b/
comedi_board_info/comedi_board_info.c
@@
-209,7
+209,7
@@
int main(int argc,char *argv[])
comedi_t *it;
char *filename = default_filename;
char c;
- char strtmp[
16
];
+ char strtmp[
32
];
int n_chans_for_generic_timed = 1;
int freq_for_generic_timed = 1E9;