From ba4e6dbd9e0494c546bcf2bba7815c343dfebee6 Mon Sep 17 00:00:00 2001 From: szaka Date: Wed, 23 Jan 2008 21:07:59 +0000 Subject: [PATCH] fix void* arithmetic (Alon Bar-Lev) --- libfuse-lite/fuse_opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfuse-lite/fuse_opt.c b/libfuse-lite/fuse_opt.c index 1c6a3157..13a27a63 100644 --- a/libfuse-lite/fuse_opt.c +++ b/libfuse-lite/fuse_opt.c @@ -200,7 +200,7 @@ static int process_opt(struct fuse_opt_context *ctx, if (call_proc(ctx, arg, opt->value, iso) == -1) return -1; } else { - void *var = ctx->data + opt->offset; + void *var = (char *)ctx->data + opt->offset; if (sep && opt->templ[sep + 1]) { const char *param = arg + sep; if (opt->templ[sep] == '=')