diff options
Diffstat (limited to 'gdb/solib-dsbt.c')
-rw-r--r-- | gdb/solib-dsbt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/solib-dsbt.c b/gdb/solib-dsbt.c index f765a78..d4383dd 100644 --- a/gdb/solib-dsbt.c +++ b/gdb/solib-dsbt.c @@ -612,9 +612,8 @@ dsbt_current_sos (void) gdb_printf (gdb_stdlog, "current_sos: name = %s\n", name_buf.get ()); - strncpy (sop->so_name, name_buf.get (), SO_NAME_MAX_PATH_SIZE - 1); - sop->so_name[SO_NAME_MAX_PATH_SIZE - 1] = '\0'; - strcpy (sop->so_original_name, sop->so_name); + sop->so_name = name_buf.get (); + sop->so_original_name = sop->so_name; } sop->lm_info = std::move (li); |