diff --git a/driver/device-mapper/dm-target.c b/driver/device-mapper/dm-target.c index 3fa7ba558..cada07717 100644 --- a/driver/device-mapper/dm-target.c +++ b/driver/device-mapper/dm-target.c @@ -61,7 +61,7 @@ int register_map_target(const char *name, dm_ctr_fn ctr, return -1; /* FIXME: what's a good return value ? */ } - t->name = (char *) t + 1; + t->name = (char *) (t + 1); strcpy(t->name, name); t->ctr = ctr;