Author: dim
Date: Mon Feb  6 12:08:41 2012
New Revision: 231080
URL: http://svn.freebsd.org/changeset/base/231080

Log:
  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

Modified:
  head/usr.bin/rpcgen/rpc_main.c

Modified: head/usr.bin/rpcgen/rpc_main.c
==============================================================================
--- head/usr.bin/rpcgen/rpc_main.c      Mon Feb  6 12:03:21 2012        
(r231079)
+++ head/usr.bin/rpcgen/rpc_main.c      Mon Feb  6 12:08:41 2012        
(r231080)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to