2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Fix size of output string in hash tests

This commit is contained in:
Mukund Sivaraman
2017-09-13 19:20:29 +05:30
parent 4c9ba9ded8
commit bc5e0a6868

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 = len * 2 + 1;
int size = 2 + len * 2 + 1;
out[0] = '\0';
strlcat(out, "0x", size);