mirror of
https://github.com/irssi/irssi.git
synced 2026-08-22 10:02:22 +02:00
checksum
remove UB on high chars
This commit is contained in:
parent
17aafe974b
commit
39d88e33aa
1 changed files with 1 additions and 1 deletions
|
|
@ -665,7 +665,7 @@ void sig_term(int n)
|
|||
would be nice but would just take more space without much real benefit */
|
||||
static unsigned int file_checksum(const char *fname)
|
||||
{
|
||||
char buf[512];
|
||||
unsigned char buf[512];
|
||||
int f, ret, n;
|
||||
unsigned int checksum = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue