Skip to content

Commit 4da0fc4

Browse files
Update ff_hook_syscall.c
1 parent fc96b17 commit 4da0fc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adapter/syscall/ff_hook_syscall.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,11 +1426,11 @@ ff_hook_read(int fd, void *buf, size_t len)
14261426
}
14271427

14281428
ssize_t
1429-
ff_hook___read_chk(int fd, void *buf, size_t nbytes, size_t buflen)
1429+
ff_hook___read_chk(int fd, void *buf, size_t nbytes, size_t len)
14301430
{
14311431
DEBUG_LOG("ff_hook___read_chk, fd:%d, buf:%p, len:%lu\n", fd, buf, len);
14321432

1433-
if (buflen < nbytes)
1433+
if (len < nbytes)
14341434
__chk_fail();
14351435

14361436
if (buf == NULL || len == 0) {

0 commit comments

Comments
 (0)