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 1ba669a2fa96024359c04c3619b27687c60754cc..a3152570c503477b3ba95217d04a9cb81b7c8130 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 1a005b2f62e0e35df9dfd7502e519ceeea3185ca..117bd2e608fe1cce131511a0950abbdb3b280e7d 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");