From af562032901445a7328b319ea7e4ae787c05d862 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 9 Dec 2005 20:19:00 +0000 Subject: [PATCH] fix --- lib/fuse_opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2