aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2002-03-25 00:45:48 +0000
committerRichard M. Stallman2002-03-25 00:45:48 +0000
commit060cc8ffa032a46578ada342a77342a24d5c5513 (patch)
tree597509caa2dfd5e797ab15f41548a8517956a204 /src
parente643ceae670107a1df04d7949e501723f81e1392 (diff)
downloademacs-060cc8ffa032a46578ada342a77342a24d5c5513.tar.gz
emacs-060cc8ffa032a46578ada342a77342a24d5c5513.zip
(GET_UNSIGNED_NUMBER): Give proper error for spaces.
Diffstat (limited to 'src')
-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
1944 do { if (p != pend) \ 1944 do { if (p != pend) \
1945 { \ 1945 { \
1946 PATFETCH (c); \ 1946 PATFETCH (c); \
1947 while (c == ' ') PATFETCH (c); \ 1947 if (c == ' ') \
1948 FREE_STACK_RETURN (REG_BADBR); \
1948 while ('0' <= c && c <= '9') \ 1949 while ('0' <= c && c <= '9') \
1949 { \ 1950 { \
1950 int prev; \ 1951 int prev; \
@@ -1958,7 +1959,8 @@ struct range_table_work_area
1958 break; \ 1959 break; \
1959 PATFETCH (c); \ 1960 PATFETCH (c); \
1960 } \ 1961 } \
1961 while (c == ' ') PATFETCH (c); \ 1962 if (c == ' ') \
1963 FREE_STACK_RETURN (REG_BADBR); \
1962 } \ 1964 } \
1963 } while (0) 1965 } while (0)
1964 1966