diff options
| author | itohy <itohy@NetBSD.org> | 2002-01-30 07:02:01 +0000 |
|---|---|---|
| committer | itohy <itohy@NetBSD.org> | 2002-01-30 07:02:01 +0000 |
| commit | 6ba4cdcf1619ac976bdccef8a3db1adbbcdac178 (patch) | |
| tree | ddcdace6c4921b11c8e319341cd0a4eb247682cc /bin | |
| parent | 1e27695917061476551b0fb2bee54eb3e30e4c2c (diff) | |
Fix problem where
% echo $20000000000
Segmentation fault (core dumped)
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/csh/dol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/csh/dol.c b/bin/csh/dol.c index 0ba79e6db37..f81ae45909f 100644 --- a/bin/csh/dol.c +++ b/bin/csh/dol.c @@ -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 @@ Dgetdol(void) } while (Isdigit(c)); unDredc(c); if (subscr < 0) { - dolerror(vp->v_name); + stderror(ERR_RANGE); return; } if (subscr == 0) { |
