From cebe5f1d10418b6fc7dec0eab5bfe5d62bd0bb74 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 29 Nov 2004 12:07:04 +0000 Subject: 20592: Debian bug#283358: $((##)) failed erratically --- Src/math.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Src/math.c') diff --git a/Src/math.c b/Src/math.c index ce316414e..acf7bdd11 100644 --- a/Src/math.c +++ b/Src/math.c @@ -451,6 +451,10 @@ zzlex(void) int v; ptr++; + if (!*ptr) { + zerr("character missing after ##", NULL, 0); + return EOI; + } ptr = getkeystring(ptr, NULL, 6, &v); yyval.u.l = v; return NUM; -- cgit 1.4.1