aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--table.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/table.c b/table.c
index 2ee29847..374fb316 100644
--- a/table.c
+++ b/table.c
@@ -3,7 +3,7 @@
3** Module to control static tables 3** Module to control static tables
4*/ 4*/
5 5
6char *rcs_table="$Id: table.c,v 2.12 1994/11/07 16:34:44 roberto Exp roberto $"; 6char *rcs_table="$Id: table.c,v 2.13 1994/11/08 20:07:54 roberto Exp $";
7 7
8#include <stdlib.h> 8#include <stdlib.h>
9#include <string.h> 9#include <string.h>
@@ -235,7 +235,7 @@ char *lua_createstring (char *s)
235*/ 235*/
236char *lua_addfile (char *fn) 236char *lua_addfile (char *fn)
237{ 237{
238 if (lua_nfile >= MAXFILE-1) 238 if (lua_nfile >= MAXFILE)
239 return "too many files"; 239 return "too many files";
240 if ((lua_file[lua_nfile++] = strdup (fn)) == NULL) 240 if ((lua_file[lua_nfile++] = strdup (fn)) == NULL)
241 return "not enough memory"; 241 return "not enough memory";
@@ -247,7 +247,7 @@ char *lua_addfile (char *fn)
247*/ 247*/
248int lua_delfile (void) 248int lua_delfile (void)
249{ 249{
250 free(lua_file[lua_nfile--]); 250 free(lua_file[--lua_nfile]);
251 return 1; 251 return 1;
252} 252}
253 253