diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2022-02-22 17:26:05 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2022-02-22 17:26:05 +0000 |
commit | 8c5505c35af42e2bcffa043c580ea32ff7df5a1b (patch) | |
tree | f5d744fbcf9fbdd15594f316035dbdef55eff3f9 /usr.sbin/btrace | |
parent | a588760510b8147c4d3d0baf26bdf32a7a4356e5 (diff) |
Since other exported commandnames were increased to 24 and graduated into
proper strings, adapt dt's exported string in the same way.
Old/new files/tools will not work the same way.
That this interface needs to also change was pointed out by jsg
Diffstat (limited to 'usr.sbin/btrace')
-rw-r--r-- | usr.sbin/btrace/btrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/btrace/btrace.c b/usr.sbin/btrace/btrace.c index 11fef8bfbc7..5daaab1f969 100644 --- a/usr.sbin/btrace/btrace.c +++ b/usr.sbin/btrace/btrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: btrace.c,v 1.61 2021/12/07 22:17:03 guenther Exp $ */ +/* $OpenBSD: btrace.c,v 1.62 2022/02/22 17:26:04 deraadt Exp $ */ /* * Copyright (c) 2019 - 2021 Martin Pieuchot <mpi@openbsd.org> @@ -492,7 +492,7 @@ rules_setup(int fd) /* Initialize "fake" event for BEGIN/END */ bt_devt.dtev_pbn = -1; - memcpy(&bt_devt.dtev_comm, getprogname(), sizeof(bt_devt.dtev_comm)); + strlcpy(bt_devt.dtev_comm, getprogname(), sizeof(bt_devt.dtev_comm)); bt_devt.dtev_pid = getpid(); bt_devt.dtev_tid = getthrid(); clock_gettime(CLOCK_REALTIME, &bt_devt.dtev_tsp); |