remove UB on high chars
This commit is contained in:
ailin-nemui 2018-02-02 11:47:11 +01:00
commit 39d88e33aa

View file

@ -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;