We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75061a2 commit 97560ddCopy full SHA for 97560dd
components/libc/mmap/posix_mmap.c
@@ -35,7 +35,7 @@ void *mmap(void *addr, size_t length, int prot, int flags,
35
cur = lseek(fd, 0, SEEK_SET);
36
37
lseek(fd, offset, SEEK_SET);
38
- read_bytes = read(fd, addr, length);
+ read_bytes = read(fd, mem, length);
39
if (read_bytes != length)
40
{
41
if (addr == RT_NULL)
0 commit comments