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