diff --git a/modules/src/read_em/reade.c b/modules/src/read_em/reade.c index 69acf2771..f8bf157f8 100644 --- a/modules/src/read_em/reade.c +++ b/modules/src/read_em/reade.c @@ -293,6 +293,11 @@ getnumber(c, ap) c = getbyte(); } + /* Soak up any whitespace (to allow "- 4" to be considered a number). */ + + while (isspace(c)) + c = getbyte(); + if (! isdigit(c)) { ungetbyte(c); syntax("digit expected");