Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/nl Use NL_TEXTMAX to size the buffer passed to reger...



details:   https://anonhg.NetBSD.org/src/rev/43ec67d8d19a
branches:  trunk
changeset: 476102:43ec67d8d19a
user:      kleink <kleink%NetBSD.org@localhost>
date:      Mon Sep 06 09:37:29 1999 +0000

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

diffstat:

 usr.bin/nl/nl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ed3de979281c -r 43ec67d8d19a usr.bin/nl/nl.c
--- a/usr.bin/nl/nl.c   Mon Sep 06 09:27:18 1999 +0000
+++ b/usr.bin/nl/nl.c   Mon Sep 06 09:37:29 1999 +0000
@@ -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 @@
        int section;
 {
        int error;
-       char errorbuf[LINE_MAX];        /* should be sufficient in any case */
+       char errorbuf[NL_MAX];
 
        switch (argstr[0]) {
        case 'a':



Home | Main Index | Thread Index | Old Index