aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index ebd5fd2..0435d33 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -10783,7 +10783,7 @@ print_it_exception (enum exception_catchpoint_kind ex, struct breakpoint *b)
just replace the exception name by the generic string
"exception" - it will read as "an exception" in the
notification we are about to print. */
- sprintf (exception_name, "exception");
+ memcpy (exception_name, "exception", sizeof ("exception"));
}
/* In the case of unhandled exception breakpoints, we print
the exception name as "unhandled EXCEPTION_NAME", to make