Skip to content

Commit

Permalink
Fix '-Wstringop-truncation'.
Browse files Browse the repository at this point in the history
  • Loading branch information
besser82 authored and adegtyarev committed Nov 5, 2018
1 parent 8ac1e43 commit 3cbee1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gost3411-2012.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ convert_to_hex(unsigned char *in, unsigned char *out, size_t len,
for (i = 0; i < len; i++)
{
sprintf(ch, "%02x", (unsigned char) in[i]);
strncat((char *) &out[0], ch, 2);
memcpy(&out[i * 2], ch, 2);
}
}

Expand Down

0 comments on commit 3cbee1f

Please sign in to comment.