Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Feb 2012 12:08:41 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r231080 - head/usr.bin/rpcgen
Message-ID:  <201202061208.q16C8fnU035131@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202061208.q16C8fnU035131>