Commit bc5e0a68 authored by Mukund Sivaraman's avatar Mukund Sivaraman

Fix size of output string in hash tests

parent 4c9ba9de
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment