aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ltests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltests.c b/ltests.c
index eaf3b251..e3037be3 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1389,7 +1389,7 @@ static int checkpanic (lua_State *L) {
1389static int externKstr (lua_State *L) { 1389static int externKstr (lua_State *L) {
1390 size_t len; 1390 size_t len;
1391 const char *s = luaL_checklstring(L, 1, &len); 1391 const char *s = luaL_checklstring(L, 1, &len);
1392 lua_pushextlstring(L, s, len, NULL, NULL); 1392 lua_pushexternalstring(L, s, len, NULL, NULL);
1393 return 1; 1393 return 1;
1394} 1394}
1395 1395
@@ -1413,7 +1413,7 @@ static int externstr (lua_State *L) {
1413 /* copy string content to buffer, including ending 0 */ 1413 /* copy string content to buffer, including ending 0 */
1414 memcpy(buff, s, (len + 1) * sizeof(char)); 1414 memcpy(buff, s, (len + 1) * sizeof(char));
1415 /* create external string */ 1415 /* create external string */
1416 lua_pushextlstring(L, buff, len, allocf, ud); 1416 lua_pushexternalstring(L, buff, len, allocf, ud);
1417 return 1; 1417 return 1;
1418} 1418}
1419 1419