summaryrefslogtreecommitdiff
path: root/table.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-01-14 13:40:26 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-01-14 13:40:26 -0200
commitf4591397da8444d1917a67a34cb6a6ac8137385e (patch)
tree749a23af6964bee4a373aecf13f3cdfcda8656f0 /table.c
parent8faf4d1de2cbda61ae871fc23091deff3672e0fc (diff)
downloadlua-github-f4591397da8444d1917a67a34cb6a6ac8137385e.tar.gz
strdup is done via mem.c to control its memory allocation
Diffstat (limited to 'table.c')
-rw-r--r--table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/table.c b/table.c
index 85311b21..1eec2913 100644
--- a/table.c
+++ b/table.c
@@ -3,7 +3,7 @@
** Module to control static tables
*/
-char *rcs_table="$Id: table.c,v 2.25 1994/12/20 21:20:36 roberto Exp roberto $";
+char *rcs_table="$Id: table.c,v 2.26 1995/01/12 14:19:04 roberto Exp roberto $";
#include <string.h>
@@ -197,7 +197,7 @@ char *lua_addfile (char *fn)
{
if (lua_nfile >= MAXFILE)
return "too many files";
- if ((lua_file[lua_nfile++] = strdup (fn)) == NULL)
+ if ((lua_file[lua_nfile++] = luaI_strdup (fn)) == NULL)
return "not enough memory";
return NULL;
}