This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] language.c: reverse the sense of the test


Checked in under the obvious fix rule -- the test was inverted.
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.

Index: language.c
===================================================================
RCS file: /cvs/src/src/gdb/language.c,v
retrieving revision 1.15
diff -c -3 -p -r1.15 language.c
*** language.c	2001/03/27 20:36:23	1.15
--- language.c	2001/05/08 21:16:34
*************** longest_local_hex_string_custom (LONGEST
*** 720,726 ****
    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 */
      internal_error (__FILE__, __LINE__,
  		    "longest_local_hex_string_custom: insufficient space to store result");
  
--- 720,726 ----
    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 */
      internal_error (__FILE__, __LINE__,
  		    "longest_local_hex_string_custom: insufficient space to store result");
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]