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
This commit is contained in:
Dimitry Andric 2012-02-06 12:08:41 +00:00
parent 0dac0ed841
commit ade215fd5a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=231080

View file

@ -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);