changeset 44145:aad3682a49ba

(GET_UNSIGNED_NUMBER): Give proper error for spaces.
author Richard M. Stallman <rms@gnu.org>
date Mon, 25 Mar 2002 00:45:48 +0000
parents 88194f722f30
children aff7bdba6572
files src/regex.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/regex.c	Mon Mar 25 00:44:51 2002 +0000
+++ b/src/regex.c	Mon Mar 25 00:45:48 2002 +0000
@@ -1944,7 +1944,8 @@
  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 @@
 	     break;							\
 	   PATFETCH (c);						\
 	 }								\
-       while (c == ' ') PATFETCH (c);					\
+       if (c == ' ')							\
+	 FREE_STACK_RETURN (REG_BADBR);					\
        }								\
     } while (0)