aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-05-31 18:08:56 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-05-31 18:08:56 +0000
commit574a2a49b7287cf9132a8e00cdbc5f4828aec941 (patch)
treee2002d53645041f6d496d28237e364f7edc3db20 /gdb
parent89da237fe9856da46344030f65c40768b75ec114 (diff)
downloadgdb-574a2a49b7287cf9132a8e00cdbc5f4828aec941.zip
gdb-574a2a49b7287cf9132a8e00cdbc5f4828aec941.tar.gz
gdb-574a2a49b7287cf9132a8e00cdbc5f4828aec941.tar.bz2
* stabsread.c (read_huge_number): Don't accept '0' + radix as part
of number, just through '0' + radix - 1.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/stabsread.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 90513ad..c60a58b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Mon May 31 10:37:04 1993 Jim Kingdon (kingdon@cygnus.com)
+
+ * stabsread.c (read_huge_number): Don't accept '0' + radix as part
+ of number, just through '0' + radix - 1.
+
Sun May 30 15:35:21 1993 Fred Fish (fnf@cygnus.com)
* Makefile.in (SER_HARDWIRE): Temporarily comment out ser-tcp.o.
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 531b63b..0fdacb0 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -3122,7 +3122,7 @@ read_huge_number (pp, end, bits)
}
upper_limit = LONG_MAX / radix;
- while ((c = *p++) >= '0' && c <= ('0' + radix))
+ while ((c = *p++) >= '0' && c < ('0' + radix))
{
if (n <= upper_limit)
{