1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 11:13:12 +02:00

xfer: replace constant by sizeof in a call to snprintf

This commit is contained in:
Sebastien Helleu
2014-02-28 11:45:18 +01:00
parent 7ff2dd13cb
commit 02dcc3cb69
+1 -1
View File
@@ -433,7 +433,7 @@ xfer_dcc_recv_file_child (struct t_xfer *xfer)
bin_hash = gcry_md_read (*xfer->hash_handle, 0);
if (bin_hash)
{
snprintf (hash, 9, "%.2X%.2X%.2X%.2X",
snprintf (hash, sizeof (hash), "%.2X%.2X%.2X%.2X",
bin_hash[0], bin_hash[1], bin_hash[2],
bin_hash[3]);
if (weechat_strcasecmp (hash,