From 0822bcc5bbeddba780a4c68b62a310ccb9db875d Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Mon, 25 Mar 2002 00:45:48 +0000 Subject: [PATCH] (GET_UNSIGNED_NUMBER): Give proper error for spaces. --- regex.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/regex.c b/regex.c index cd05bf8860..591d6f14e1 100644 --- a/regex.c +++ b/regex.c @@ -1944,7 +1944,8 @@ struct range_table_work_area do { if (p != pend) \ { \ PATFETCH (c); \ - while (c == ' ') PATFETCH (c); \ + if (c == ' ') \ + FREE_STACK_RETURN (REG_BADBR); \ while ('0' <= c && c <= '9') \ { \ int prev; \ @@ -1958,7 +1959,8 @@ struct range_table_work_area break; \ PATFETCH (c); \ } \ - while (c == ' ') PATFETCH (c); \ + if (c == ' ') \ + FREE_STACK_RETURN (REG_BADBR); \ } \ } while (0) -- 2.30.2