bin/125370: commit references a PR

dfilter service dfilter at FreeBSD.ORG
Mon Jun 6 11:00:23 UTC 2011


The following reply was made to PR bin/125370; it has been noted by GNATS.

From: dfilter at FreeBSD.ORG (dfilter service)
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: bin/125370: commit references a PR
Date: Mon,  6 Jun 2011 10:52:40 +0000 (UTC)

 Author: ae
 Date: Mon Jun  6 10:52:26 2011
 New Revision: 222744
 URL: http://svn.freebsd.org/changeset/base/222744
 
 Log:
   Increase buffer size for the command line.
   
   PR:		bin/125370
   Submitted by:	sem
   MFC after:	2 weeks
 
 Modified:
   head/sbin/ipfw/main.c
 
 Modified: head/sbin/ipfw/main.c
 ==============================================================================
 --- head/sbin/ipfw/main.c	Mon Jun  6 10:51:00 2011	(r222743)
 +++ head/sbin/ipfw/main.c	Mon Jun  6 10:52:26 2011	(r222744)
 @@ -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 at freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
 


More information about the freebsd-ipfw mailing list