diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-07-28 17:58:12 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-07-28 17:58:12 +0000 |
commit | ac442754a711ded582081d08e7f981068d261071 (patch) | |
tree | 6fd5150f32a62bf003fa3a3c385c40391001b73a | |
parent | 526b94a315acea5090d10a093be49c704aa5ab75 (diff) | |
download | FreeBSD-src-ac442754a711ded582081d08e7f981068d261071.zip FreeBSD-src-ac442754a711ded582081d08e7f981068d261071.tar.gz |
bc core dumped when a value with between 128 and 255 (mod 256) digits
was entered.
PR: 12550
Submitted by: Vladimir Tchoukharev chu@gpi.ru
Reviewed by: Phil Nelson <phil@cs.wwu.edu> (maintainer of bc)
-rw-r--r-- | contrib/bc/FREEBSD-upgrade | 2 | ||||
-rw-r--r-- | contrib/bc/bc/scan.l | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/contrib/bc/FREEBSD-upgrade b/contrib/bc/FREEBSD-upgrade index 2c92408..c45ee4b 100644 --- a/contrib/bc/FREEBSD-upgrade +++ b/contrib/bc/FREEBSD-upgrade @@ -9,3 +9,5 @@ bc 1.0.4 tar xvzf bc-1.0.4.tar.gz cd bc-1.0.4 cvs import src/contrib/bc BC bc1_0_4 + + applied patch (PR 12550) diff --git a/contrib/bc/bc/scan.l b/contrib/bc/bc/scan.l index 8b5b25d..78a145b 100644 --- a/contrib/bc/bc/scan.l +++ b/contrib/bc/bc/scan.l @@ -60,7 +60,7 @@ _PROTOTYPE(int yywrap, (void)); /* Variables to help interface readline with bc. */ static char *rl_line = (char *)NULL; static char *rl_start = (char *)NULL; -static char rl_len = 0; +static int rl_len = 0; /* Definitions for readline access. */ extern FILE *rl_instream; |