Source-Changes-HG archive

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

[src/trunk]: src/bin/csh Fix problem where



details:   https://anonhg.NetBSD.org/src/rev/603b40bf6fed
branches:  trunk
changeset: 521411:603b40bf6fed
user:      itohy <itohy%NetBSD.org@localhost>
date:      Wed Jan 30 07:02:01 2002 +0000

description:
Fix problem where
        % echo $20000000000
        Segmentation fault (core dumped)

diffstat:

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

diffs (27 lines):

diff -r 1665a1689ec6 -r 603b40bf6fed bin/csh/dol.c
--- a/bin/csh/dol.c     Wed Jan 30 06:54:56 2002 +0000
+++ b/bin/csh/dol.c     Wed Jan 30 07:02:01 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dol.c,v 1.17 2001/09/14 14:04:00 wiz Exp $ */
+/* $NetBSD: dol.c,v 1.18 2002/01/30 07:02:01 itohy Exp $ */
 
 /*-
  * Copyright (c) 1980, 1991, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)dol.c      8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: dol.c,v 1.17 2001/09/14 14:04:00 wiz Exp $");
+__RCSID("$NetBSD: dol.c,v 1.18 2002/01/30 07:02:01 itohy Exp $");
 #endif
 #endif /* not lint */
 
@@ -476,7 +476,7 @@
            } while (Isdigit(c));
            unDredc(c);
            if (subscr < 0) {
-               dolerror(vp->v_name);
+               stderror(ERR_RANGE);
                return;
            }
            if (subscr == 0) {



Home | Main Index | Thread Index | Old Index