aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lauxlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lauxlib.c b/lauxlib.c
index 9c8f050e..07f2eba6 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.137 2005/05/31 14:34:02 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.138 2005/07/11 14:01:28 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*/
@@ -327,9 +327,9 @@ LUALIB_API int luaL_getn (lua_State *L, int t) {
327 327
328static const char *pushnexttemplate (lua_State *L, const char *path) { 328static const char *pushnexttemplate (lua_State *L, const char *path) {
329 const char *l; 329 const char *l;
330 while (*path == *LUA_PATHSEP) path++; /* skip separators */
330 if (*path == '\0') return NULL; /* no more templates */ 331 if (*path == '\0') return NULL; /* no more templates */
331 if (*path == LUA_PATHSEP) path++; /* skip separator */ 332 l = strchr(path, *LUA_PATHSEP); /* find next separator */
332 l = strchr(path, LUA_PATHSEP); /* find next separator */
333 if (l == NULL) l = path+strlen(path); 333 if (l == NULL) l = path+strlen(path);
334 lua_pushlstring(L, path, l - path); /* template */ 334 lua_pushlstring(L, path, l - path); /* template */
335 return l; 335 return l;