diff options
Diffstat (limited to '')
| -rw-r--r-- | lstrlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 */ |
