summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2002-03-25 00:45:48 +0000
committerRichard M. Stallman <rms@gnu.org>2002-03-25 00:45:48 +0000
commit060cc8ffa032a46578ada342a77342a24d5c5513 (patch)
tree597509caa2dfd5e797ab15f41548a8517956a204 /src/regex.c
parente643ceae670107a1df04d7949e501723f81e1392 (diff)
downloademacs-060cc8ffa032a46578ada342a77342a24d5c5513.tar.gz
emacs-060cc8ffa032a46578ada342a77342a24d5c5513.tar.bz2
emacs-060cc8ffa032a46578ada342a77342a24d5c5513.zip
(GET_UNSIGNED_NUMBER): Give proper error for spaces.
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/regex.c b/src/regex.c
index cd05bf8860b..591d6f14e12 100644
--- a/src/regex.c
+++ b/src/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)