From 42c013dc87e8d40897acd7c9bc16ccd0344452a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sat, 15 Oct 2022 10:20:41 +0800 Subject: [PATCH] fix debug output --- crypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto.h b/crypto.h index 3d0d79d..71ba0d0 100644 --- a/crypto.h +++ b/crypto.h @@ -99,7 +99,7 @@ static int cmdpacket_encrypt(cmdpacket_t p, int index, const char pwd[64], const TEA tea; #ifdef DEBUG printf("encrypt len: %d, data: ", p->datalen); - for(int i = 0; i < p->datalen; i++) printf("%02x", data[i]); + for(int i = 0; i < p->datalen; i++) printf("%02x", ((uint8_t*)data)[i]); putchar('\n'); #endif