This commit is contained in:
Mukund Sivaraman
2017-09-13 19:22:03 +05:30
parent bc5e0a6868
commit a2873eabf6

View File

@@ -55,7 +55,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);