diff options
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index af0fbaa..5d7cb23 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -5734,7 +5734,7 @@ procfs_make_note_section (bfd *obfd, int *note_size) if (get_exec_file (0)) { - strncpy (fname, strrchr (get_exec_file (0), '/') + 1, sizeof (fname)); + strncpy (fname, lbasename (get_exec_file (0)), sizeof (fname)); strncpy (psargs, get_exec_file (0), sizeof (psargs)); |