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

From: dfil...@freebsd.org (dfilter service)
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: bin/125370: commit references a PR
Date: Mon, 20 Jun 2011 13:47:18 +0000 (UTC)

 Author: ae
 Date: Mon Jun 20 13:46:57 2011
 New Revision: 223337
 URL: http://svn.freebsd.org/changeset/base/223337
 
 Log:
   MFC r222744:
     Increase buffer size for the command line.
   
     PR:                bin/125370
 
 Modified:
   stable/7/sbin/ipfw/main.c
 Directory Properties:
   stable/7/sbin/ipfw/   (props changed)
 
 Modified: stable/7/sbin/ipfw/main.c
 ==============================================================================
 --- stable/7/sbin/ipfw/main.c  Mon Jun 20 13:46:38 2011        (r223336)
 +++ stable/7/sbin/ipfw/main.c  Mon Jun 20 13:46:57 2011        (r223337)
 @@ -382,7 +382,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 */
 @@ -490,7 +490,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-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
 
_______________________________________________
freebsd-ipfw@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
To unsubscribe, send any mail to "freebsd-ipfw-unsubscr...@freebsd.org"

Reply via email to