mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #6597
ec46069
Fix incorrect lenght of command INS_PREFIX_HASH (grydz)
This commit is contained in:
commit
228101a72e
1 changed files with 2 additions and 2 deletions
|
@ -1468,8 +1468,8 @@ namespace hw {
|
||||||
offset = set_command_header(INS_PREFIX_HASH,2,cnt);
|
offset = set_command_header(INS_PREFIX_HASH,2,cnt);
|
||||||
len = pref_length - pref_offset;
|
len = pref_length - pref_offset;
|
||||||
//options
|
//options
|
||||||
if (len > (BUFFER_SEND_SIZE-7)) {
|
if (len > (BUFFER_SEND_SIZE-offset-3)) {
|
||||||
len = BUFFER_SEND_SIZE-7;
|
len = BUFFER_SEND_SIZE-offset-3;
|
||||||
this->buffer_send[offset] = 0x80;
|
this->buffer_send[offset] = 0x80;
|
||||||
} else {
|
} else {
|
||||||
this->buffer_send[offset] = 0x00;
|
this->buffer_send[offset] = 0x00;
|
||||||
|
|
Loading…
Reference in a new issue