summaryrefslogtreecommitdiffstats
path: root/src/m_argv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_argv.c')
-rw-r--r--src/m_argv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/m_argv.c b/src/m_argv.c
index 1e23bae..0c32e3b 100644
--- a/src/m_argv.c
+++ b/src/m_argv.c
@@ -15,6 +15,7 @@
#include <fcntl.h>
#include <unistd.h>
+#include "f_fail.h"
#include "d_define.h"
#include "m_comm.h"
#include "m_loop.h"
@@ -44,7 +45,7 @@ uint8_t
else
{
if ((fd = open(*(argv + 1), O_RDONLY)) < 0)
- f_open_file(msh);
+ f_open_file(*(argv + 1), msh);
msh->ret = m_loop(fd, msh);
close(fd);
}