From 7aedc9f8b2e8e0720348c50ab4b63581abf18625 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 8 May 2001 21:19:43 +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 1ba669a2fa9..a3152570c50 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 1a005b2f62e..117bd2e608f 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.30.2