diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-01-14 13:40:26 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-01-14 13:40:26 -0200 |
| commit | f4591397da8444d1917a67a34cb6a6ac8137385e (patch) | |
| tree | 749a23af6964bee4a373aecf13f3cdfcda8656f0 /table.c | |
| parent | 8faf4d1de2cbda61ae871fc23091deff3672e0fc (diff) | |
| download | lua-github-f4591397da8444d1917a67a34cb6a6ac8137385e.tar.gz | |
strdup is done via mem.c to control its memory allocation
Diffstat (limited to 'table.c')
| -rw-r--r-- | table.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |
