git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@2659 77e5149b-7576-45b1-b177-96237e5ba77b
| ... | ... |
@@ -288,7 +288,7 @@ static void *read_header(int fd, header_type hdr_type) |
| 288 | 288 |
file_hdr->file_crc = rar_endian_convert_32(file_hdr->file_crc); |
| 289 | 289 |
file_hdr->name_size = rar_endian_convert_16(file_hdr->name_size); |
| 290 | 290 |
if(file_hdr->flags & 0x100) {
|
| 291 |
- if (cli_readn(fd, file_hdr + SIZEOF_NEWLHD, 8) != 8) {
|
|
| 291 |
+ if (cli_readn(fd, (char *) file_hdr + SIZEOF_NEWLHD, 8) != 8) {
|
|
| 292 | 292 |
free(file_hdr); |
| 293 | 293 |
return NULL; |
| 294 | 294 |
} |