summaryrefslogtreecommitdiffstats
path: root/src/userprog/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userprog/syscall.c')
-rw-r--r--src/userprog/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userprog/syscall.c b/src/userprog/syscall.c
index b9acb17..c1308ca 100644
--- a/src/userprog/syscall.c
+++ b/src/userprog/syscall.c
@@ -325,7 +325,7 @@ syscall_handler (struct intr_frame *f UNUSED)
case 10:
// seek
fd_i = INTR_ESP (1, int);
- position = INTR_ESP (3, unsigned);
+ position = INTR_ESP (2, unsigned);
CHECK_PTR_AND_MAYBE_EXIT (fd_i);
CHECK_PTR_AND_MAYBE_EXIT (position);
seek (*fd_i, *position);