aboutsummaryrefslogtreecommitdiff
path: root/lstrlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-01-26 14:30:02 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-01-26 14:30:02 -0200
commitc4ea0c3b29252bcafeadf2f69532bdb67ab20bb9 (patch)
tree06ed5143f5724be72981ad6303d24c7f09e1cb46 /lstrlib.c
parent7106c491dddbfc7b9986c3c91214acd56b066d7f (diff)
downloadlua-c4ea0c3b29252bcafeadf2f69532bdb67ab20bb9.tar.gz
lua-c4ea0c3b29252bcafeadf2f69532bdb67ab20bb9.tar.bz2
lua-c4ea0c3b29252bcafeadf2f69532bdb67ab20bb9.zip
detail (cleaning trailing spaces)
Diffstat (limited to 'lstrlib.c')
-rw-r--r--lstrlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstrlib.c b/lstrlib.c
index 97139613..255bc51f 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstrlib.c,v 1.161 2010/12/20 17:25:36 roberto Exp roberto $ 2** $Id: lstrlib.c,v 1.162 2011/01/12 20:36:01 roberto Exp roberto $
3** Standard library for string operations and pattern-matching 3** Standard library for string operations and pattern-matching
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -524,7 +524,7 @@ static int nospecials (const char *p, size_t l) {
524 size_t upto = 0; 524 size_t upto = 0;
525 do { 525 do {
526 if (strpbrk(p + upto, SPECIALS)) 526 if (strpbrk(p + upto, SPECIALS))
527 return 0; /* pattern has a special character */ 527 return 0; /* pattern has a special character */
528 upto += strlen(p + upto) + 1; /* may have more after \0 */ 528 upto += strlen(p + upto) + 1; /* may have more after \0 */
529 } while (upto <= l); 529 } while (upto <= l);
530 return 1; /* no special chars found */ 530 return 1; /* no special chars found */