diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-08-07 14:05:00 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-08-07 14:05:00 +0000 |
commit | 49680bcbab397ab3555526324ca55bceb8941c0c (patch) | |
tree | 6da8381ef02d1b4a49ca1b5dd5843db3c626e9c3 /usr.sbin/btrace/btrace.c | |
parent | d5dce99a695d532b7c202b86c3bf37f0f3e3452e (diff) |
Do not hardcode the key length.
Diffstat (limited to 'usr.sbin/btrace/btrace.c')
-rw-r--r-- | usr.sbin/btrace/btrace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/btrace/btrace.c b/usr.sbin/btrace/btrace.c index 63fa20db2a2..680833e9bd6 100644 --- a/usr.sbin/btrace/btrace.c +++ b/usr.sbin/btrace/btrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: btrace.c,v 1.21 2020/07/11 14:52:14 mpi Exp $ */ +/* $OpenBSD: btrace.c,v 1.22 2020/08/07 14:04:59 mpi Exp $ */ /* * Copyright (c) 2019 - 2020 Martin Pieuchot <mpi@openbsd.org> @@ -860,7 +860,7 @@ ba_read(struct bt_arg *ba) const char * ba2hash(struct bt_arg *ba, struct dt_evt *dtev) { - static char buf[256]; + static char buf[KLEN]; char *hash; int l, len; @@ -905,7 +905,7 @@ const char * ba2bucket(struct bt_arg *ba, struct bt_arg *brange, struct dt_evt *dtev, long *pstep) { - static char buf[256]; + static char buf[KLEN]; long val, bucket; int l; |