aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
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/stabsread.c
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/stabsread.c')
-rw-r--r--gdb/stabsread.c2
1 files changed, 1 insertions, 1 deletions
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)
{