fixing C/C++ CI errors

This commit is contained in:
Matt Hess
2025-12-17 03:28:41 +00:00
parent 79e34fdfbb
commit 27dfd4788b
6 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ static void debug_hex(const char* label, const uint8_t* data, size_t len)
static constexpr char log_category_prefix[] = "CarrotCrypto ";
char hex[130] = {0};
for (size_t i = 0; i < len && i < 64; ++i) {
sprintf(hex + i*2, "%02x", data[i]);
snprintf(hex + i*2, 3, "%02x", data[i]);
}
LOGINFO(6, label << ": " << static_cast<const char*>(hex));
}