diff options
-rw-r--r-- | table.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** Module to control static tables | 3 | ** Module to control static tables |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_table="$Id: table.c,v 2.12 1994/11/07 16:34:44 roberto Exp roberto $"; | 6 | char *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 | */ |
236 | char *lua_addfile (char *fn) | 236 | char *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 | */ |
248 | int lua_delfile (void) | 248 | int 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 | ||