diff options
Diffstat (limited to 'src/lib_io.c')
-rw-r--r-- | src/lib_io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib_io.c b/src/lib_io.c index 18d87a89..cae56579 100644 --- a/src/lib_io.c +++ b/src/lib_io.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "lj_buf.h" | 22 | #include "lj_buf.h" |
23 | #include "lj_str.h" | 23 | #include "lj_str.h" |
24 | #include "lj_state.h" | 24 | #include "lj_state.h" |
25 | #include "lj_strfmt.h" | ||
25 | #include "lj_ff.h" | 26 | #include "lj_ff.h" |
26 | #include "lj_lib.h" | 27 | #include "lj_lib.h" |
27 | 28 | ||
@@ -85,7 +86,7 @@ static IOFileUD *io_file_open(lua_State *L, const char *mode) | |||
85 | IOFileUD *iof = io_file_new(L); | 86 | IOFileUD *iof = io_file_new(L); |
86 | iof->fp = fopen(fname, mode); | 87 | iof->fp = fopen(fname, mode); |
87 | if (iof->fp == NULL) | 88 | if (iof->fp == NULL) |
88 | luaL_argerror(L, 1, lj_str_pushf(L, "%s: %s", fname, strerror(errno))); | 89 | luaL_argerror(L, 1, lj_strfmt_pushf(L, "%s: %s", fname, strerror(errno))); |
89 | return iof; | 90 | return iof; |
90 | } | 91 | } |
91 | 92 | ||