mirror of https://github.com/wolfSSL/wolfBoot.git
tpm: policy_sign: fix: modulo by zero
parent
9c0ca1fc6f
commit
abee55e7f5
|
@ -205,7 +205,7 @@ static void printHexString(const unsigned char* bin, unsigned long sz,
|
|||
printf("\t");
|
||||
for (i = 0; i < sz; i++) {
|
||||
printf("%02x", bin[i]);
|
||||
if (((i+1) % maxLine) == 0 && i+1 != sz)
|
||||
if (maxLine > 0 && ((i+1) % maxLine) == 0 && i+1 != sz)
|
||||
printf("\n\t");
|
||||
}
|
||||
printf("\n");
|
||||
|
|
Loading…
Reference in New Issue