From: Miklos Szeredi Date: Fri, 9 Dec 2005 20:19:00 +0000 (+0000) Subject: fix X-Git-Tag: fuse_2_5_0_pre2~27 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=af562032901445a7328b319ea7e4ae787c05d862;p=qemu-gpiodev%2Flibfuse.git fix --- 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; }