diff options
Diffstat (limited to 'libmount/src/fs.c')
-rw-r--r-- | libmount/src/fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmount/src/fs.c b/libmount/src/fs.c index e3b4eee0e..2bab7d6af 100644 --- a/libmount/src/fs.c +++ b/libmount/src/fs.c @@ -150,8 +150,8 @@ static inline int update_str(char **dest, const char *src) static inline int cpy_str_at_offset(void *new, const void *old, size_t offset) { - char **o = (char **) (old + offset); - char **n = (char **) (new + offset); + char **o = (char **) ((char *) old + offset); + char **n = (char **) ((char *) new + offset); if (*n) return 0; /* already set, don't overwrite */ |