mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 16:45:24 +00:00
use consistent type in sizeof and ultimate type cast
This commit is contained in:
@@ -631,7 +631,7 @@ sig_fromfile(char *path, isc_buffer_t *iscbuf) {
|
|||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
buf = (char *) malloc((sb.st_size + 1) * sizeof(unsigned char));
|
buf = (char *) malloc((sb.st_size + 1) * sizeof(char));
|
||||||
if (buf == NULL) {
|
if (buf == NULL) {
|
||||||
t_info("malloc failed, errno == %d\n", errno);
|
t_info("malloc failed, errno == %d\n", errno);
|
||||||
close(fd);
|
close(fd);
|
||||||
@@ -726,7 +726,7 @@ t2_sigchk(char *datapath, char *sigpath, char *keyname,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
data = (unsigned char *) malloc(sb.st_size * sizeof(char));
|
data = (unsigned char *) malloc(sb.st_size * sizeof(unsigned char));
|
||||||
if (data == NULL) {
|
if (data == NULL) {
|
||||||
t_info("t2_sigchk: malloc failed %d\n", errno);
|
t_info("t2_sigchk: malloc failed %d\n", errno);
|
||||||
++*nprobs;
|
++*nprobs;
|
||||||
|
Reference in New Issue
Block a user