forked from Imagelibrary/binutils-gdb
2011-03-01 Michael Snyder <msnyder@vmware.com>
* objc-lang.c (selectors_info): Add explanitory comment. (classes_info): Ditto.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user