From a9dc8dcca3ac5ca47940cd4e9d7138490bec3d06 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 1 Mar 2011 18:51:06 +0000 Subject: [PATCH] 2011-03-01 Michael Snyder * objc-lang.c (selectors_info): Add explanitory comment. (classes_info): Ditto. --- gdb/ChangeLog | 5 +++++ gdb/objc-lang.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index af94f8d30bd..8695f7ff9c3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-03-01 Michael Snyder + + * objc-lang.c (selectors_info): Add explanitory comment. + (classes_info): Ditto. + 2011-03-01 Ulrich Weigand * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define. diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index d656044c7fd..280751fbf7e 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -720,6 +720,7 @@ selectors_info (char *regexp, int from_tty) strcpy(myregexp, ".*]"); else { + /* Allow a few extra bytes because of the strcat below. */ if (sizeof (myregexp) < strlen (regexp) + 4) error (_("Regexp is too long: %s"), regexp); strcpy(myregexp, regexp); @@ -863,6 +864,7 @@ classes_info (char *regexp, int from_tty) strcpy(myregexp, ".* "); /* Null input: match all objc classes. */ else { + /* Allow a few extra bytes because of the strcat below. */ if (sizeof (myregexp) < strlen (regexp) + 4) error (_("Regexp is too long: %s"), regexp); strcpy(myregexp, regexp); -- 2.30.2