]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
FFI: Fix ffi.load() error message on Windows.
authorMike Pall <mike>
Sun, 23 Jan 2011 13:28:01 +0000 (14:28 +0100)
committerMike Pall <mike>
Sun, 23 Jan 2011 13:28:01 +0000 (14:28 +0100)
src/lj_clib.c

index 4b3529afc66048dd86410d57f93ada50d7cc290a..4a81bb7d235509ee695d7e27b9b4e50328c49e0d 100644 (file)
@@ -139,7 +139,7 @@ static const char *clib_extname(lua_State *L, const char *name)
 static void *clib_loadlib(lua_State *L, const char *name, int global)
 {
   void *h = (void *)LoadLibraryA(clib_extname(L, name));
-  if (!h) clib_error(L, "cannot load module " LUA_QS ": %s", strdata(name));
+  if (!h) clib_error(L, "cannot load module " LUA_QS ": %s", name);
   UNUSED(global);
   return h;
 }