diff options
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.c,v 1.126 2004/09/29 21:03:14 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.127 2004/12/20 13:47:29 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -350,8 +350,8 @@ LUALIB_API int luaL_getn (lua_State *L, int t) { | |||
350 | static const char *pushnexttemplate (lua_State *L, const char *path) { | 350 | static const char *pushnexttemplate (lua_State *L, const char *path) { |
351 | const char *l; | 351 | const char *l; |
352 | if (*path == '\0') return NULL; /* no more templates */ | 352 | if (*path == '\0') return NULL; /* no more templates */ |
353 | if (*path == LUA_PATH_SEP) path++; /* skip separator */ | 353 | if (*path == LUA_PATHSEP) path++; /* skip separator */ |
354 | l = strchr(path, LUA_PATH_SEP); /* find next separator */ | 354 | l = strchr(path, LUA_PATHSEP); /* find next separator */ |
355 | if (l == NULL) l = path+strlen(path); | 355 | if (l == NULL) l = path+strlen(path); |
356 | lua_pushlstring(L, path, l - path); /* template */ | 356 | lua_pushlstring(L, path, l - path); /* template */ |
357 | return l; | 357 | return l; |