Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jun 2011 13:50:10 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-ipfw@FreeBSD.org
Subject:   Re: bin/125370: commit references a PR
Message-ID:  <201106201350.p5KDoA8D056870@freefall.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help
The following reply was made to PR bin/125370; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/125370: commit references a PR
Date: Mon, 20 Jun 2011 13:46:58 +0000 (UTC)

 Author: ae
 Date: Mon Jun 20 13:46:38 2011
 New Revision: 223336
 URL: http://svn.freebsd.org/changeset/base/223336
 
 Log:
   MFC r222744:
     Increase buffer size for the command line.
   
     PR:		bin/125370
 
 Modified:
   stable/8/sbin/ipfw/main.c
 Directory Properties:
   stable/8/sbin/ipfw/   (props changed)
 
 Modified: stable/8/sbin/ipfw/main.c
 ==============================================================================
 --- stable/8/sbin/ipfw/main.c	Mon Jun 20 12:40:21 2011	(r223335)
 +++ stable/8/sbin/ipfw/main.c	Mon Jun 20 13:46:38 2011	(r223336)
 @@ -444,7 +444,7 @@ static void
  ipfw_readfile(int ac, char *av[])
  {
  #define MAX_ARGS	32
 -	char	buf[BUFSIZ];
 +	char buf[4096];
  	char *progname = av[0];		/* original program name */
  	const char *cmd = NULL;		/* preprocessor name, if any */
  	const char *filename = av[ac-1]; /* file to read */
 @@ -552,7 +552,7 @@ ipfw_readfile(int ac, char *av[])
  		}
  	}
  
 -	while (fgets(buf, BUFSIZ, f)) {		/* read commands */
 +	while (fgets(buf, sizeof(buf), f)) {		/* read commands */
  		char linename[20];
  		char *args[2];
  
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201106201350.p5KDoA8D056870>