aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-05-08 21:19:43 +0000
committerMichael Snyder <msnyder@vmware.com>2001-05-08 21:19:43 +0000
commit7aedc9f8b2e8e0720348c50ab4b63581abf18625 (patch)
treebd3d644436c9c9afd50d80858c392d5af246b7fc /gdb
parent8390138c6bd7b78827ebc79a56f65df402df7ecc (diff)
downloadgdb-7aedc9f8b2e8e0720348c50ab4b63581abf18625.zip
gdb-7aedc9f8b2e8e0720348c50ab4b63581abf18625.tar.gz
gdb-7aedc9f8b2e8e0720348c50ab4b63581abf18625.tar.bz2
2001-05-08 Michael Snyder <msnyder@redhat.com>
* language.c (longest_local_hex_string_custom): Strlen test is inverted -- reverse the sense of the test.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/language.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1ba669a..a315257 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-08 Michael Snyder <msnyder@redhat.com>
+
+ * language.c (longest_local_hex_string_custom): Strlen test is
+ inverted -- reverse the sense of the test.
+
2001-05-08 Mark Kettenis <kettenis@gnu.org>
* config/i386/tm-i386v.h (struct frame_info, struct
diff --git a/gdb/language.c b/gdb/language.c
index 1a005b2..117bd2e 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -720,7 +720,7 @@ longest_local_hex_string_custom (LONGEST num, char *width)
num_pad_chars = field_width - strlen (temp_nbr_buf); /* possibly negative */
if (strlen (local_hex_format_prefix ()) + num_len + num_pad_chars
- < RESULT_BUF_LEN) /* paranoia */
+ >= RESULT_BUF_LEN) /* paranoia */
internal_error (__FILE__, __LINE__,
"longest_local_hex_string_custom: insufficient space to store result");