svn commit: r282468 - head/usr.bin/checknr
Julian Elischer
julian at freebsd.org
Wed May 6 04:57:31 UTC 2015
On 5/5/15 5:54 PM, Baptiste Daroussin wrote:
> Author: bapt
> Date: Tue May 5 09:54:47 2015
> New Revision: 282468
> URL: https://svnweb.freebsd.org/changeset/base/282468
>
> Log:
> Enlarge the buffer for storing macros as some macros can be longer than 5
>
> Modified:
> head/usr.bin/checknr/checknr.c
>
> Modified: head/usr.bin/checknr/checknr.c
> ==============================================================================
> --- head/usr.bin/checknr/checknr.c Tue May 5 09:50:21 2015 (r282467)
> +++ head/usr.bin/checknr/checknr.c Tue May 5 09:54:47 2015 (r282468)
> @@ -313,7 +313,7 @@ static void
> process(FILE *f)
> {
> int i, n;
> - char mac[5]; /* The current macro or nroff command */
> + char mac[512]; /* The current macro or nroff command */
5 to 512 ?? if 5 was almost enough. why not 64 or 50?
> char *line;
> size_t linecap;
> int pl;
>
>
>
More information about the svn-src-all
mailing list