From 9618aaf07d0d82ccbac91db22cb42451ec17d7ed Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 19 Jun 1998 13:14:09 -0300 Subject: small corrections in comments --- lstrlib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lstrlib.c') diff --git a/lstrlib.c b/lstrlib.c index a42a6118..58fbd708 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.13 1998/05/18 22:21:55 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.14 1998/05/31 22:20:45 roberto Exp roberto $ ** Standard library for strings and pattern-matching ** See Copyright Notice in lua.h */ @@ -341,7 +341,7 @@ static void str_find (void) struct Capture cap; luaL_arg_check(0 <= init && init <= l, 3, "out of range"); if (lua_getparam(4) != LUA_NOOBJECT || - strpbrk(p, SPECIALS) == NULL) { /* no special caracters? */ + strpbrk(p, SPECIALS) == NULL) { /* no special characters? */ char *s2 = strstr(s+init, p); if (s2) { lua_pushnumber(s2-s+1); @@ -483,7 +483,7 @@ static void str_format (void) strfrmt = match(initf, "[-+ #0]*(%d*)%.?(%d*)", &cap); if (cap.capture[0].len > 2 || cap.capture[1].len > 2) /* < 100? */ lua_error("invalid format (width or precision too long)"); - strncpy(form+1, initf, strfrmt-initf+1); /* +1 to include convertion */ + strncpy(form+1, initf, strfrmt-initf+1); /* +1 to include conversion */ form[strfrmt-initf+2] = 0; buff = luaL_openspace(1000); /* to store the formatted value */ switch (*strfrmt++) { -- cgit v1.2.3-55-g6feb