projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a2f9a2
)
Corrected calculation of board name offset. Fixes segmentation violation
author
Ian Abbott
<abbotti@mev.co.uk>
Fri, 7 Sep 2007 17:04:27 +0000
(17:04 +0000)
committer
Ian Abbott
<abbotti@mev.co.uk>
Fri, 7 Sep 2007 17:04:27 +0000
(17:04 +0000)
when reading /proc/comedi for comedi drivers that have num_names > 1.
comedi/proc.c
patch
|
blob
|
history
diff --git
a/comedi/proc.c
b/comedi/proc.c
index 506d31e8d4698acf0eef2dd17f7366ccc27496da..6723c32c146c98a6acfb5e69c3da790b3042001f 100644
(file)
--- a/
comedi/proc.c
+++ b/
comedi/proc.c
@@
-74,7
+74,7
@@
int comedi_read_procmem(char *buf,char **start,off_t offset,int len,int *eof,voi
l += sprintf(buf+l,"%s:\n",driv->driver_name);
for(i=0;i<driv->num_names;i++){
l+=sprintf(buf+l," %s\n",
- *(char **)(driv->board_name+i*driv->offset));
+ *(char **)(
(char *)
driv->board_name+i*driv->offset));
}
if(!driv->num_names){
l+=sprintf(buf+l," %s\n",driv->driver_name);