summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-02-06 12:08:41 +0000
committerdim <dim@FreeBSD.org>2012-02-06 12:08:41 +0000
commit9df8133640c5924838c6b7491804ea0842d4d4c4 (patch)
tree1121058819039c615fd1707113acd03cba60f37e /usr.bin
parent7568a91a59edeae64a910d200f4ad39f3e8465f4 (diff)
downloadFreeBSD-src-9df8133640c5924838c6b7491804ea0842d4d4c4.zip
FreeBSD-src-9df8133640c5924838c6b7491804ea0842d4d4c4.tar.gz
Amend r231079 by properly shifting up the existing arguments in
rpc_main.c's insarg() function. I had forgotten to put this in my patch queue, sorry. Pointy hat to: me MFC after: 1 week
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rpcgen/rpc_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/rpcgen/rpc_main.c b/usr.bin/rpcgen/rpc_main.c
index da96fdf..7cff9bf 100644
--- a/usr.bin/rpcgen/rpc_main.c
+++ b/usr.bin/rpcgen/rpc_main.c
@@ -953,7 +953,7 @@ insarg(int place, const char *cp)
}
/* Move up existing arguments */
- for (i = argcount - 1; i > place; i--)
+ for (i = argcount - 1; i >= place; i--)
arglist[i + 1] = arglist[i];
arglist[place] = xstrdup(cp);
OpenPOWER on IntegriCloud