ref: 51d7d3eb6aee563d489f52258f6bc16d43cc50de
parent: a1c3c34c70431447a89fbe08c3475dbfaee7b672
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Aug 13 19:03:15 EDT 2022
libdtracy: fix wrong key size comparsion in dtarecord()
--- a/sys/src/libdtracy/agg.c
+++ b/sys/src/libdtracy/agg.c
@@ -128,7 +128,7 @@
q[1] = a->id;
if(nkey == a->keysize)
memmove(&q[2], key, nkey);
- else if(nkey > a->keysize){
+ else if(nkey < a->keysize){
memmove(&q[2], key, nkey);
memset((uchar*)q + 8 + nkey, 0, a->keysize - nkey);
}else