diff options
Diffstat (limited to 'gdb/objc-lang.c')
-rw-r--r-- | gdb/objc-lang.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index d656044..280751f 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); |