2001-05-08 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 8 May 2001 21:19:43 +0000 (21:19 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 8 May 2001 21:19:43 +0000 (21:19 +0000)
* language.c (longest_local_hex_string_custom): Strlen test is
inverted -- reverse the sense of the test.

gdb/ChangeLog
gdb/language.c

index 1ba669a..a315257 100644 (file)
@@ -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
index 1a005b2..117bd2e 100644 (file)
@@ -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");