aboutsummaryrefslogtreecommitdiff
path: root/loadlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-05 15:03:15 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-05 15:03:15 -0300
commite888976bc6ba5592fb8ab8ecc04a8f63e217aa74 (patch)
treeae0a03f16d413e6a901c6a5f64058264974672fb /loadlib.c
parent4d46289331395a845c5de1f6c0e0fe873c50db4f (diff)
downloadlua-e888976bc6ba5592fb8ab8ecc04a8f63e217aa74.tar.gz
lua-e888976bc6ba5592fb8ab8ecc04a8f63e217aa74.tar.bz2
lua-e888976bc6ba5592fb8ab8ecc04a8f63e217aa74.zip
Details (typos in comments)
Diffstat (limited to 'loadlib.c')
-rw-r--r--loadlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loadlib.c b/loadlib.c
index ff73a459..b72dd885 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -308,7 +308,7 @@ static void setpath (lua_State *L, const char *fieldname,
308 luaL_addchar(&b, *LUA_PATH_SEP); 308 luaL_addchar(&b, *LUA_PATH_SEP);
309 } 309 }
310 luaL_addstring(&b, dft); /* add default */ 310 luaL_addstring(&b, dft); /* add default */
311 if (dftmark < path + len - 2) { /* is there a sufix after ';;'? */ 311 if (dftmark < path + len - 2) { /* is there a suffix after ';;'? */
312 luaL_addchar(&b, *LUA_PATH_SEP); 312 luaL_addchar(&b, *LUA_PATH_SEP);
313 luaL_addlstring(&b, dftmark + 2, (path + len - 2) - dftmark); 313 luaL_addlstring(&b, dftmark + 2, (path + len - 2) - dftmark);
314 } 314 }