diff options
-rw-r--r-- | lib/fuse_opt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuse_opt.c b/lib/fuse_opt.c index e3234f2..7767563 100644 --- a/lib/fuse_opt.c +++ b/lib/fuse_opt.c @@ -104,7 +104,7 @@ static int insert_arg(struct fuse_opt_context *ctx, int pos, const char *arg) if (pos != ctx->argcout - 1) { char *newarg = ctx->argvout[ctx->argcout - 1]; - memmove(&ctx->argvout[pos+1], &ctx->argvout[pos], + memmove(&ctx->argvout[pos+1], &ctx->argvout[pos], sizeof(char *) * (ctx->argcout - pos - 1)); ctx->argvout[pos] = newarg; } |