Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/qt/tradingdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,8 @@ QString tradingDialog::HMAC_SHA512_SIGNER(QString UrlToSign, QString Secret)

// Be careful of the length of string with the choosen hash engine. SHA1 produces a 20-byte hash value which rendered as 40 characters.
// Change the length accordingly with your choosen hash engine
char mdString[128];
// Update: and 0-terminate it!
char mdString[129] = { 0 };

for(int i = 0; i < 64; i++){
sprintf(&mdString[i*2], "%02x", (unsigned int)digest[i]);
Expand Down