Browse Source

Fix copy/paste error in Lua reg_llstring

bel2125 7 years ago
parent
commit
ac55fc0250
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mod_lua.inl

+ 1 - 1
src/mod_lua.inl

@@ -85,7 +85,7 @@ reg_llstring(struct lua_State *L,
 {
 {
 	if (buffer1 != NULL && buffer2 != NULL) {
 	if (buffer1 != NULL && buffer2 != NULL) {
 		lua_pushlstring(L, (const char *)buffer1, buflen1);
 		lua_pushlstring(L, (const char *)buffer1, buflen1);
-		lua_pushlstring(L, (const char *)buffer1, buflen2);
+        lua_pushlstring(L, (const char *)buffer2, buflen2);
 		lua_rawset(L, -3);
 		lua_rawset(L, -3);
 	}
 	}
 }
 }