(cherry picked from commit a2873eabf6)
(cherry picked from commit 4baac8b9f3)
This commit is contained in:
Mukund Sivaraman
2017-09-13 19:22:03 +05:30
parent 6e338884b5
commit 1be28340db

View File

@@ -63,7 +63,7 @@ isc_result_t
tohexstr(unsigned char *d, unsigned int len, char *out) {
char c_ret[] = "AA";
unsigned int i;
int size = 2 + len * 2 + 1;
int size = 2 + (len * 2) + 1;
out[0] = '\0';
strlcat(out, "0x", size);