mirror of
https://github.com/apache/arrow.git
synced 2026-10-28 16:47:19 +08:00
Fix errors in unit tests
This commit is contained in:
1 parent
8f95d4583f
commit
792e9f70e4
1 file changed
+1
-2
@@ -110,9 +110,8 @@ const char* gdv_hash_using_sha(int64_t context, const void* message,
|
||||
DCHECK(result_buff_index >= 0 && result_buff_index < result_buf_size);
|
||||
|
||||
unsigned char hex_number = result[j];
|
||||
char* next_pos_to_write = result_buffer + result_buff_index;
|
||||
result_buff_index +=
|
||||
snprintf(next_pos_to_write, sizeof(next_pos_to_write), "%02x", hex_number);
|
||||
snprintf(result_buffer + result_buff_index, result_buf_size, "%02x", hex_number);
|
||||
}
|
||||
|
||||
// Free the resources used by the EVP to avoid memory leaks
|
||||
|
||||
Reference in new issue
Block a user