Skip to content

Commit 8355b88

Browse files
authored
Merge pull request #512 from arnout/patch-1
s_mp_rand_platform.c: s_read_urandom: correctly handle split read
2 parents eda0bd6 + 528fdb0 commit 8355b88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s_mp_rand_platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static mp_err s_read_urandom(void *p, size_t n)
9595
if (fd == -1) return MP_ERR;
9696

9797
while (n > 0u) {
98-
ssize_t ret = read(fd, p, n);
98+
ssize_t ret = read(fd, q, n);
9999
if (ret < 0) {
100100
if (errno == EINTR) {
101101
continue;

0 commit comments

Comments
 (0)