diff options
Diffstat (limited to 'drivers/dahdi/dahdi-base.c')
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 5e1137d..be4c089 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -3093,7 +3093,7 @@ static int ioctl_load_zone(unsigned long data) return -ENOMEM; } - ptr += sizeof(*z); + ptr = (char *) ptr + sizeof(*z); space -= sizeof(*z); dahdi_copy_string(z->name, work->th.name, sizeof(z->name)); @@ -3135,7 +3135,7 @@ static int ioctl_load_zone(unsigned long data) t = work->samples[x] = ptr; space -= sizeof(*t); - ptr += sizeof(*t); + ptr = (char *) ptr + sizeof(*t); /* Remember which sample is work->next */ work->next[x] = work->td.next; |