summaryrefslogtreecommitdiff
path: root/sysfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysfile.c')
-rw-r--r--sysfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysfile.c b/sysfile.c
index f12b2e1..d18aa1b 100644
--- a/sysfile.c
+++ b/sysfile.c
@@ -17,7 +17,7 @@ argfd(int n, int *pfd, struct file **pf)
int fd;
struct file *f;
- if(argint(argno, &fd) < 0)
+ if(argint(n, &fd) < 0)
return -1;
if(fd < 0 || fd >= NOFILE || (f=cp->ofile[fd]) == 0)
return -1;