diff options
Diffstat (limited to 'crypto/rand/md_rand.c')
| -rw-r--r-- | crypto/rand/md_rand.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c index 29e465b07524..a7af9f9d8671 100644 --- a/crypto/rand/md_rand.c +++ b/crypto/rand/md_rand.c @@ -238,7 +238,7 @@ static void ssleay_rand_add(const void *buf, int num, double add)      md_c[0] = md_count[0];      md_c[1] = md_count[1]; -    memcpy(local_md, md, sizeof md); +    memcpy(local_md, md, sizeof(md));      /* state_index <= state_num <= STATE_SIZE */      state_index += num; @@ -454,7 +454,7 @@ int ssleay_rand_bytes(unsigned char *buf, int num, int pseudo, int lock)      st_num = state_num;      md_c[0] = md_count[0];      md_c[1] = md_count[1]; -    memcpy(local_md, md, sizeof md); +    memcpy(local_md, md, sizeof(md));      state_index += num_ceil;      if (state_index > state_num) @@ -480,7 +480,7 @@ int ssleay_rand_bytes(unsigned char *buf, int num, int pseudo, int lock)             goto err;  #ifndef GETPID_IS_MEANINGLESS          if (curr_pid) {         /* just in the first iteration to save time */ -            if (!MD_Update(&m, (unsigned char *)&curr_pid, sizeof curr_pid)) +            if (!MD_Update(&m, (unsigned char *)&curr_pid, sizeof(curr_pid)))                  goto err;              curr_pid = 0;          } | 
