From 7ade7ca99aa8f00748b73689e19e89ba84f44467 Mon Sep 17 00:00:00 2001 From: msnyder Date: Tue, 8 May 2001 21:19:42 +0000 Subject: [PATCH] 2001-05-08 Michael Snyder * language.c (longest_local_hex_string_custom): Strlen test is inverted -- reverse the sense of the test. --- gdb/ChangeLog | 5 +++++ gdb/language.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1ba669a2fa..a3152570c5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-05-08 Michael Snyder + + * language.c (longest_local_hex_string_custom): Strlen test is + inverted -- reverse the sense of the test. + 2001-05-08 Mark Kettenis * config/i386/tm-i386v.h (struct frame_info, struct diff --git a/gdb/language.c b/gdb/language.c index 1a005b2f62..117bd2e608 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"); -- 2.11.0