mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Fix warning when implicitly casting strlen(microdesc) to int
Harmless unless we somehow generate a microdesc of more than INT_MAX bytes.
This commit is contained in:
parent
a504a81d22
commit
5d679caa32
4
changes/ssize_t_warning
Normal file
4
changes/ssize_t_warning
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor build fixes:
|
||||
- Fix a harmless (in this case) build warning for implicitly
|
||||
converting a strlen() to an int. Bugfix on 0.2.4.1-alpha.
|
||||
|
@ -3606,7 +3606,7 @@ dirvote_format_microdesc_vote_line(char *out_buf, size_t out_buf_len,
|
||||
int consensus_method_low,
|
||||
int consensus_method_high)
|
||||
{
|
||||
int ret = -1;
|
||||
ssize_t ret = -1;
|
||||
char d64[BASE64_DIGEST256_LEN+1];
|
||||
char *microdesc_consensus_methods =
|
||||
make_consensus_method_list(consensus_method_low,
|
||||
|
Loading…
Reference in New Issue
Block a user