Use NL_TEXTMAX to size the buffer passed to regerror().

This commit is contained in:
kleink 1999-09-06 09:37:29 +00:00
parent ee1ce1c15e
commit 4fe72c2fe5
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nl.c,v 1.3 1999/04/23 14:43:05 kleink Exp $ */
/* $NetBSD: nl.c,v 1.4 1999/09/06 09:37:29 kleink Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
__COPYRIGHT(
"@(#) Copyright (c) 1999\
The NetBSD Foundation, Inc. All rights reserved.");
__RCSID("$NetBSD: nl.c,v 1.3 1999/04/23 14:43:05 kleink Exp $");
__RCSID("$NetBSD: nl.c,v 1.4 1999/09/06 09:37:29 kleink Exp $");
#endif
#include <errno.h>
@ -390,7 +390,7 @@ parse_numbering(argstr, section)
int section;
{
int error;
char errorbuf[LINE_MAX]; /* should be sufficient in any case */
char errorbuf[NL_MAX];
switch (argstr[0]) {
case 'a':